AttributeError: 'NoneType' 对象没有属性 'loader' [英] AttributeError: 'NoneType' object has no attribute 'loader'
本文介绍了AttributeError: 'NoneType' 对象没有属性 'loader'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
今天当我启动我的笔记本电脑 (Ubuntu 18.4) 并尝试使用 pip 安装软件包时遇到问题,我遇到了这个错误:
having an issue today when I started up my laptop (Ubuntu 18.4) and trying to use pip to install packages, I'm met with this error:
Error processing line 3 of /home/cjones/.local/lib/python3.6/site-packages/googleapis_common_protos-1.5.8-py3.6-nspkg.pth:
Traceback (most recent call last):
File "/usr/lib/python3.6/site.py", line 174, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 568, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
自上次成功启动以来,我认为我没有改变任何东西,但似乎缺少某些东西......有人可以帮忙吗?
I don't think I changed anything since last successful boot but it seems as though something is missing... can anyone help?
推荐答案
Delete /home/cjones/.local/lib/python3.6/site-packages/googleapis_common_protos-1.5.8-py3.6-nspkg.pth
并重试.
Delete /home/cjones/.local/lib/python3.6/site-packages/googleapis_common_protos-1.5.8-py3.6-nspkg.pth
and retry.
这篇关于AttributeError: 'NoneType' 对象没有属性 'loader'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文