ITPub博客

首页 > 应用开发 > > pycharm执行正常程序首先会报错后正常执行

pycharm执行正常程序首先会报错后正常执行

作者:freewill 时间:2019-09-18 10:23:59 0 删除 编辑

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 "", line 1, in

File "", 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 "", line 1, in

File "", line 580, in module_from_spec

AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored

执行代码为:

print('hello world')

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

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    113
  • 访问量
    1015