首页 > 应用开发 > > pycharm执行正常程序首先会报错后正常执行
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 "
File "
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 "
File "
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
执行代码为:
print('hello world')

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1594/viewspace-3119336/ ,如需转载,请注明出处,否则将追究法律责任。