gsutil-总是显示“ no python2”消息吗?

时间:2018-06-25 02:06:28

标签: google-cloud-platform

我正在gsutil中使用Amazon Linux 2018.03(谷歌云SDK)。安装gsutil和配置后,我总是收到一条消息which: no python2

$ gsutil
which: no python2 in (/home/ec2-user/google-cloud-sdk/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sb
in:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/opt/aws/bin:/home/ec2-user/.local/bin:/hom
e/ec2-user/bin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin)

如何禁用此警告?

1 个答案:

答案 0 :(得分:2)

设置CLOUDSDK_PYTHON环境变量对我有用。

export CLOUDSDK_PYTHON=python
gsutil