I am installing Google App Engine under Windows (not using Cygwin).
After running the bat script, I closed and reopened the cmd.exe
and entered inside the google-cloud-sdk
directory. When I ran the command gcloud auth login
, I'm getting the error:
'gcloud' is not recognized as an internal or external command,
operable program or batch file.
just below path in environment variables there is PATHEXT, have to add .PY to it, as the gcloud is gcloud.py,
also have to add
C:\Program Files\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\gcloud;
C:\Program Files\Google\Cloud SDK\google-cloud-sdk.staging\lib\googlecloudsdk\gcloud
to the environmental variable path.
Like Domenic called out, I was missing the /bin folder because of the corporate proxy.
I followed these steps:
The installation completed successfully but it wasn't added to the PATH environment variable, so I had to manually add "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\" to it.
In my case, it's because my laptop connect to internet using corporate proxy when install google cloud. I assume the proxy block connection to google cloud installation file.
So, I try to re-install with my own internet connection and the problem solved
None of the above helped on Windows 8.1 64 bit. Because the SDK is 32 bit and it installs 64 bit Python.
I solved this by uninstalling the SDK and Python, removing folders. I downloaded python 32 bit, installed it and then the SDK and it worked.
I am having the same Issue but fortunately I've got it resolved :)
First thing gcloud is actually gcloud.py so you have to fix this by adding .py to PATHTEXT environment variable, second try to locate gcloud.py by searching inside the C:\Program Files\Google\Cloud SDK\google-cloud-sdk mine happened to be in this path C:\Program Files\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\gcloud copy it and add it to PATH environment variable
As steps:
hopefully everything will workout for you
In my case, I had a folder gClould and gCloud.staging after updating. I could not remove the gCloud folder so I closed all my apps first, then renamed the folder, and changed the gCloud.staging to gCloud. Everything worked after that. For some, this could be your problem, especially it was working before.
Good luck!