在Amazon EC2上为Python安装Google Cloud Client Library时遇到错误

时间:2018-07-27 05:03:25

标签: python python-2.7 amazon-web-services google-cloud-platform google-cloud-storage

我的AWS EC2(默认linux)正在运行python 2.7,我正在使用:

sudo pip install --upgrade google-cloud

安装适用于Python的Google Cloud Client库。但是我得到这个错误:

Cannot uninstall 'chardet'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:1)

请勿尝试安装is deprecated软件包google-cloud

由于您也将其标记为Storage,所以我假设您打算使用Python的GCS:而是将google-cloud-storagepip install --upgrade google-cloud-storage一起安装。还建议使用virtualenv