问题描述
我已经安装了以下Google库:
google-api-core 1.22.1
google-api-python-client 1.10.0
google-auth 1.20.1
google-auth-httplib2 0.0.4
google-auth-oauthlib 0.4.1
google-cloud 0.34.0
google-cloud-core 1.4.1
google-cloud-storage 1.30.0
google-crc32c 0.1.0
为帮助我存储Google客户端凭据。但是,将其下载到venv时会遇到此类错误。
Remainder of file ignored
Error processing line 3 of C:\google_cloud_storage-1.30.0-py3.8-nspkg.pth:
Traceback (most recent call last):
File "c:\python38\lib\site.py",line 169,in addpackage
exec(line)
File "<string>",line 1,in <module>
File "<frozen importlib._bootstrap>",line 553,in module_from_spec
AttributeError: 'nonetype' object has no attribute 'loader'
有人知道我该怎么做吗?
解决方法
遇到与“zope”包相关的类似问题时。我做了
pip install -U zope
。它解决了这个问题。看看这是否有效。
我建议尝试
pip install -U google-cloud-storage