Google Cloud SDK v274.0.0 update asking for Python 2.7 interpreter on a machine that has only ever had Python 3+ (Windows)

岁酱吖の 提交于 2020-01-05 07:09:27

问题


This is really strange - I've found no help in the documentation, nor can we replicate the error on a machine of a similar build. The gcloud CLI has worked without any error on my Python 3 machine for months.

After today's update, any gcloud command is met with the below error message, looking for a Python 2.7 interpreter. I'm at a loss as to how to proceed - even when attempting to uninstall with the gcloud command the same error is thrown.


回答1:


This is a known issue that is being tracked here

Version 2.74 installation is broken on Windows. You will need to install an older version. This can be fixed by hand-editing gcloud.cmd but I do not recommend this.

Use the following link to download a previous version after uninstalling the current version.

Installing from versioned archives

[UPDATE 12/30/2019]

Google has released a minor revision update that appears to fix this problem. The revised update is version 2.74.0.1.



来源:https://stackoverflow.com/questions/59458092/google-cloud-sdk-v274-0-0-update-asking-for-python-2-7-interpreter-on-a-machine

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