pycharm即使执行正常代码都会先报错了在执行代码
ldle不会出现
python版本 3.7.4
pycharm版本 2019.1.1
报错内容如下:
Error processing line 1 of C:\Users\me\AppData\Roaming\Python\Python37\site-packages\matplotlib-3.0.3-py3.7-nspkg.pth:
Traceback (most recent call last):
File "C:\Users\me\AppData\Local\Programs\Python\Python37\lib\site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 580, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
Error processing line 1 of C:\Users\me\AppData\Roaming\Python\Python37\site-packages\sphinxcontrib_websupport-1.1.0-py3.7-nspkg.pth:
Traceback (most recent call last):
File "C:\Users\me\AppData\Local\Programs\Python\Python37\lib\site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 580, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
执行代码为:
print('hello world')
不不不,可能是你安装python有问题,正常是不会的
请问你是怎么解决的?我现在的报错跟你一个样子
还没有解决……
想着毕竟不影响程序执行
@大爷改变自己: 重装python库