每次安装或使用python google api (google-api-python-client)时,都会出现以下错误:
Error processing line 2 of /usr/local/lib/python2.7/dist-packages/googleapis_common_protos-1.1.0-nspkg.pth:
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 158, in addpackage
exec line
File "<string>", line 1, in <module>
KeyError: 'google'
Remainder of file ignored它似乎不会影响安装或使用,但我想摆脱这个错误(我不知道有一天它是否会有一些影响)。
谢谢!
发布于 2017-03-14 03:05:52
安装路径中的某些内容似乎没有正确安装。您是否可以尝试删除未完全安装的内容,然后使用pip重试?即pip install -U google-api-python-client (或者Python3用户的pip3 )。请更新你的帖子,如果你在运行它时遇到任何错误。
https://stackoverflow.com/questions/36066148
复制相似问题