Python模块报错问题
我在刚刚重装了一遍的Pycham中,运行之前的Python文件,报错代码如下:
import curses
报错内容:
Traceback (most recent call last):
File "D:\Program\Python\Python日常编程\aslf.py", line 1, in <module>
import curses
File "D:\Program\Python\Object\Lib\curses\__init__.py", line 17, in <module>
from _curses import *
ModuleNotFoundError: No module named '_curses
我打开了D:\Program\Python\Object\Lib\curses_init_.py
报错代码:
from _curses import *
我把光标停留在_curse上:
我以为Python解释器没搜索到这个模块,我就添加了这个路径:
import sys as _sys
_sys.path.append(r'D:\Object\PyCharm Community Edition 2022.3.2\plugins\python-ce\helpers\typeshed\stdlib')
但还是一样报错.
我在重装pycham之前还可以运行,现在怎么不能了?