如果我按照https://developers.google.com/storage/docs/gsutil_install#install_pypi
安装gsutil然后gsutil失败并显示错误:
File "/usr/local/lib/python2.7/dist-packages/gslib/cs_api_map.py", line 17, in <module>
from gslib.gcs_json_api import GcsJsonApi
File "/usr/local/lib/python2.7/dist-packages/gslib/gcs_json_api.py", line 20, in <module>
from oauth2_plugin import oauth2_helper
ImportError: No module named oauth2_plugin
但是,如果我按照https://developers.google.com/storage/docs/gspythonlibrary安装,即
pip install gcs-oauth2-boto-plugin==1.5
然后它工作,并在python中找到oauth2_plugin