我正在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)
如何禁用此警告?
答案 0 :(得分:2)
设置CLOUDSDK_PYTHON环境变量对我有用。
export CLOUDSDK_PYTHON=python
gsutil