gcloud.py attributeError:module'enum'没有属性'Int Flag'

dim*_*n82 3 python google-cloud-sdk

我在运行google-cloud-sdk的install.bat(或通过'bash'hell的install.sh)时收到此错误消息.Python是版本3.6.

有什么建议?

che*_*rba 5

您需要使用Python 2.7来使用gcloud,如https://cloud.google.com/sdk/docs/#windows中所述.

在Windows上,您可以选择使用"bundled python"选项,在这种情况下,gcloud将使用自己的python 2.7版本,而不会干扰您安装的版本.