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
I too got the same error. I tried above two answers. But did not help then, I deleted python from control panel and deleted the Google sdk folder from ProgramFiles. Reinstalled GoogleCloudSDK. Now everything is fine.
And go to C:\Program Files\Google\Cloud SDK\google-cloud-sdk and click on install.bat and complete. And in cmd-------> gcloud config set project projectid
Just try to run as administrator the ..\Cloud SDK\google-cloud-sdk\install.bat and follow the instructions. At the end it will automatically add the needed dependecies to the PATH variable.
Opening gitbash and gcloud auth login
worked for me. Hope it will work for you as well
Like Domenic called out, I was missing the /bin folder because of the corporate proxy.
I followed these steps:
set http_proxy=<<your_http_proxy>>
set https_proxy=<<your_https_proxy>>
cd "c:\Program Files\Google\Cloud SDK"
c:\Python27\python.exe google-cloud-sdk\install_google_cloud_sdk.py --install-directory .
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.
For me the system path variable C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin was already set. Had to add C:\Program Files\Google\Cloud SDK\google-cloud-sdk.staging\bin as well to get it up working smoothly. Hope this resolves the issue