gcloud not recognized as an internal or external command on Windows

后端 未结 17 1520
别那么骄傲
别那么骄傲 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:27

    If you have installed Google App Engine, remove it and install GoogleCloudSDK and Google App Engine.

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

    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!

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

    If it is still not working you should also add path for Google Cloud SDK Staging in your system path,

    C:\Program Files\Google\Cloud SDK\google-cloud-sdk.staging\bin

    So you require both of the following in your system path property

    • C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin
    • C:\Program Files\Google\Cloud SDK\google-cloud-sdk.staging\bin
    0 讨论(0)
  • 2020-12-17 10:33

    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

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

    good day, to resolve in command line with admin privileges type:

    gcloud components install kubectl

    and then try the command again

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

    Me too had the same issue that

    'gcloud is not recognized as an internal or external command' .

    For windows 7 user goto: MyComputer->Right Click - Properties -> Advanced System Settings - advanced - Environment Variables.

    First have to set path extension.

    This can be done by:

    Under System variables in Environment variables choose PATHEXT->Edit -> Add ' ;.PY'.....PY for Python Support

    Second change the environment variable:

    Under System variables in Environment variables choose PATH->Edit-> ADD "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin " and click OK.

    Now restart the command shell and check with the following command :

    'gcloud -h'
    

    Sure it will work.

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