尝试安装Google Cloud时出现此错误:
Failed building wheel for GoogleAppEngineCloudStorageClient
Running setup.py clean for GoogleAppEngineCloudStorageClient
Failed to build GoogleAppEngineCloudStorageClient
Installing collected packages: GoogleAppEngineCloudStorageClient
Running setup.py install for GoogleAppEngineCloudStorageClient ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jZCvYX/GoogleAppEngineCloudStorageClient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-LgTihN-record/install-record.txt --single-version-externally-managed --compile --user --prefix= --home=/tmp/tmprq5a80:
running install
error: can't combine user with prefix, exec_prefix/home, or install_(plat)base
这是安装在/ lib文件夹中的,我也做了一个requirements.txt 以及appengine_config.py。
我也在Linux上使用python 2.7
答案 0 :(得分:0)
使用:
pip install --user --install-option="--prefix=" <package_name>
但是,install the whole Google Cloud SDK更好,因为它包括:除客户端库之外的命令行工具(gcloud,gsutil,bq)。