尝试 Google Drive SDK 快速入门示例 ( https://developers.google.com/drive/quickstart )时,我收到以下错误消息。
Traceback (most recent call last):
File "quickstart.py", line 6, in <module>
from apiclient.discovery import build
File "build/bdist.macosx-10.6-intel/egg/apiclient/discovery.py", line 45, in <module>
File "build/bdist.macosx-10.6-intel/egg/apiclient/errors.py", line 26, in <module>
ImportError: cannot import name util
如教程中所述,首先在我的 Mac 终端上:
easy_install --upgrade google-api-python-client
我正在使用 Mac OS 10.7.4 python 2.7.2