Google Cloud SDK gcloud error

99封情书 提交于 2019-12-12 14:46:47

问题


I use Google Cloud SDK under Window 7 64bit. Google Cloud SDK and python install success. and run gcloud.

The error occurs as shown below.

C:\Program Files\Google\Cloud SDK>gcloud
Traceback (most recent call last):
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line 137, in <
module>
    _cli = CreateCLI()
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line 98, in Cr
eateCLI
sdk_root = config.Paths().sdk_root
AttributeError: 'Paths' object has no attribute 'sdk_root'

Can ask for help? Thanks


回答1:


I had the same problem. And this helped me solve this problem

Manually removed directory: C:\Program Files\Google\Cloud SDK

Then rerun: GoogleCloudSDKInstaller.exe

And make sure that you have connection to needed DL servers (I was first behind company firewall and installer didn't download all files - and no complains either by installer...)

Then I was OK again..

Source: https://code.google.com/p/google-cloud-sdk/issues/detail?id=62&thanks=62&ts=1407851956



来源:https://stackoverflow.com/questions/25449779/google-cloud-sdk-gcloud-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!