“\\Google\\Cloud was unexpected.” when executing g

2020-04-20 08:06发布

问题:

The instalation of Google Cloud SDK went right. The problem is when I try to execute a gcloud command (even if gcloud -h) I have this output:

\Google\Cloud was unexpected.

I'm on Windows 10. Python 2.7.17 is correctly setup.

回答1:

There is already a bug for issues when updating to Cloud SDK version 274.0.0 in Windows. Please check it. As a workaround installing Python in C:\Python27 and then Cloud SDK in C:\Cloud_SDK could help.

I suggest to migrate to Python 3 as Python 2 will not be maintained past 2020. Here is more info about it.



回答2:

As John Hanley said, my version was broken on Windows. Google has fixed the problem with the version 2.74.0.1. Thank you all !