运行python3时由于Google云数据存储导致的AttributeError

运行python3时由于Google云数据存储导致的AttributeError,python,python-3.x,google-cloud-platform,google-cloud-datastore,google-cloud-python,Python,Python 3.x,Google Cloud Platform,Google Cloud Datastore,Google Cloud Python,自从我安装了Google Cloud的Python包装器(使用sudopip3install Google.Cloud),我就开始看到这个错误 每次运行python3程序时,即使只使用交互式shell,也会看到以下错误: Error processing line 10 of /usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/proto_goog

自从我安装了Google Cloud的Python包装器(使用
sudopip3install Google.Cloud
),我就开始看到这个错误

每次运行
python3
程序时,即使只使用交互式shell,也会看到以下错误:

Error processing line 10 of /usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/proto_google_cloud_datastore_v1-0.90.4-py3.6-nspkg.pth:

  Traceback (most recent call last):
    File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 557, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored
错误处理第10行/usr/local/ceral/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/proto_google_cloud_datastore_v1-0.90.4-py3.6-nspkg.pth:
回溯(最近一次呼叫最后一次):
addpackage中的文件“/usr/local/ceral/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site.py”,第168行
行政主任(行)
文件“”,第1行,在
文件“”,第557行,位于\u规范的模块\u中
AttributeError:“非类型”对象没有属性“加载程序”
忽略文件的其余部分

尽管存在上述错误,但一切都正常工作,但每次运行
python3
程序时都会看到堆栈跟踪,这很烦人。

您能显示导致错误的代码吗?请看这个答案