安装:
pip install google-python-cloud-debugger
Requirement already satisfied (use --upgrade to upgrade): google-python-cloud-debugger in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): google-api-python-client in /usr/local/lib/python2.7/dist-packages (from google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): six<2,>=1.6.1 in /usr/local/lib/python2.7/dist-packages (from google-api-python-client->google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): httplib2<1,>=0.8 in /usr/local/lib/python2.7/dist-packages (from google-api-python-client->google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): oauth2client in /usr/local/lib/python2.7/dist-packages (from google-api-python-client->google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): uritemplate<1,>=0.6 in /usr/local/lib/python2.7/dist-packages (from google-api-python-client->google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from oauth2client->google-api-python-client->google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): pyasn1-modules>=0.0.5 in /usr/local/lib/python2.7/dist-packages (from oauth2client->google-api-python-client->google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): rsa>=3.1.4 in /usr/local/lib/python2.7/dist-packages (from oauth2client->google-api-python-client->google-python-cloud-debugger)
Requirement already satisfied (use --upgrade to upgrade): simplejson>=2.5.0 in /usr/local/lib/python2.7/dist-packages (from uritemplate<1,>=0.6->google-api-python-client->google-python-cloud-debugger)
但是在尝试导入时,我得到ImportError: No module named uritemplate
. 堆栈跟踪是:
googleapiclient/discovery.py", line 53, in <module>
事情uritemplate
是安装:
pip install uritemplate
Requirement already satisfied (use --upgrade to upgrade): uritemplate in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): simplejson>=2.5.0 in /usr/local/lib/python2.7/dist-packages (from uritemplate)
直接导入uritemplate
也行不通..