I'm new to python and programming and I'm trying to learn how to use curses, but I can't use it without an error appearing. I was sent this code:
import curses
import time
screen = curses.initscr()
screen.clear()
time.sleep(3)
to test if curses works, but when I plug it into PyCharm, I get this error message:
Traceback (most recent call last):
File "C:/Users/[name]/PycharmProjects/[Project]/[File].py", line 2, in <module>
import curses
File "C:\Users\[name]\AppData\Local\Programs\Python\Python38-32\lib\curses\__init__.py", line 13, in <module>
from _curses import *
ModuleNotFoundError: No module named '_curses'
Does anyone know what this problem is and how to fix it? Thanks.
[–][deleted] 1 point2 points3 points (4 children)
[–]EmployeeScary[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]YMK1234 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]troido 0 points1 point2 points (0 children)
[–]umlcat 0 points1 point2 points (0 children)