解壓縮
# tar zxvf google-cloud-sdk-183.0.0-darwin-x86_64.tar.gz
進目錄後執行安裝檔
# cd google-cloud-sdk
# ./install.sh
遇到下列錯誤訊息:
File "/google-cloud-sdk/bin/bootstrapping/install.py", line 214, in <module>
main()
File "/google-cloud-sdk/bin/bootstrapping/install.py", line 189, in main
Prompts(pargs.usage_reporting)
File "/google-cloud-sdk/bin/bootstrapping/install.py", line 113, in Prompts
scope=properties.Scope.INSTALLATION)
File "/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 1512, in PersistProperty
raise MissingInstallationConfig()
重新安裝python
# brew reinstall python
it's OK~
另外也可以嘗試以下指令的安裝方式
curl https://sdk.cloud.google.com | bash
沒有留言:
張貼留言