AttributeError:'NoneType'对象没有属性'loader' [英] AttributeError: 'NoneType' object has no attribute 'loader'

查看:957
本文介绍了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?

推荐答案

删除/home/cjones/.local/lib/python3.6/site-packages/googleapis_common_protos-1.5.8-py3.6-nspkg.pth并重试.

这篇关于AttributeError:'NoneType'对象没有属性'loader'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆