【发布时间】:2015-08-30 05:30:57
【问题描述】:
ERROR: Python 3 is not supported by the Google Cloud SDK. Please use a Python 2.x version that is 2.6 or greater.
If you have a compatible Python interpreter installed, you can use it by setting the CLOUDSDK_PYTHON environment variable to point to it.
我想我们应该问的第一个问题是“谷歌从他们的客户那里赚了这么多钱,为什么他们不能雇人来确保他们的云 sdk 与 python 3 一起工作?”
如何在 linux 上克服这个错误?需要编辑哪些特定文件?这些文件应该放在哪里?
我搜索了很多,并找到了this question 关于如何在 Windows 上解决此问题,但答案并不是那么全面。
到目前为止,我已经尝试过:
一个文档来源说要修改一个名为app.yaml 的文件,但我使用命令find . -name "app.yaml" 进行搜索,但不存在这样的文件。
特别是我使用的是arch linux,我最初尝试使用AUR package,但它不起作用。
所以我从documentation 安装,确保编辑./install.sh 文件,根据the google groups 上的讨论指定python2,这也不起作用。运行命令gcloud auth login 后,我得到与上面发布的相同的错误。
【问题讨论】:
-
为什么不能完全按照消息说的做,设置 CLOUDSDK_PYTHON 环境变量?为什么你认为文件需要“编辑”?
-
那是什么?只是
set CLOUDSDK_PYTHON = *location of python2? -
是的,像这样:
export CLOUDSDK_PYTHON=/path/to/appropriate/python -
这到底是做什么的?更改我的 ~/bashrc 文件是吗?
-
I guess the first question we should be asking is "with all the money google makes off of their customers why can't they hire someone to ensure that their cloud sdk works with python 3?"- 此处相同
标签: python linux google-app-engine gcloud