gcloud not recognized as an internal or external command on Windows

后端 未结 17 1519
别那么骄傲
别那么骄傲 2020-12-17 10:07

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

相关标签:
17条回答
  • 2020-12-17 10:35

    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

    0 讨论(0)
  • 2020-12-17 10:37

    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.

    0 讨论(0)
  • 2020-12-17 10:40

    Opening gitbash and gcloud auth login worked for me. Hope it will work for you as well

    0 讨论(0)
  • 2020-12-17 10:41

    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.

    0 讨论(0)
  • 2020-12-17 10:43

    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

    0 讨论(0)
提交回复
热议问题