Mar*_*ilu 3 python cloud sdk python-2.7
我正在尝试在ubuntu中安装Google Cloud SDK,但收到错误:
[root@localhost google-cloud-sdk]# ./install.sh
Welcome to the Google Cloud SDK!
File "/home/marilu/google-cloud-sdk/bin/bootstrapping/install.py", line 182
with open(rc_path) as rc_file:
^
SyntaxError: invalid syntax [root@localhost google-cloud-sdk]#
Run Code Online (Sandbox Code Playgroud)
我安装了Python; 这就是它的样子
[root@localhost marilu]# ls -l
drwxr-xr-x 5 marilu marilu 4096 Apr 8 11:35 google-cloud-sdk
drwxrwxr-x 19 marilu marilu 4096 Apr 23 09:08 Python-2.7.6
[root@localhost marilu]#
Run Code Online (Sandbox Code Playgroud)
有人能帮我吗?为什么这个错误?
Sam*_*tha 14
1在shell或终端中运行以下命令,下载并安装Google Cloud SDK:
curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | 庆典
2重新启动shell或终端.
3通过运行对Google Cloud Platform进行身份验证gcloud auth login.
你试过吗?