'Windows 'gcloud init' returns C:\Program is not recognized, Python was not found (but Python works on cmd)
I'm trying to get Google Cloud SDK working on my Windows 10 desktop, but when I use the SDK shell (which, as I understand it, is just command line but with the directory changed to where Cloud SDK is installed), running 'gcloud init' returns the following:
'""C:\Program' is not recognized as an internal or external command, operable program or batch file. Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. '""C:\Program' is not recognized as an internal or external command, operable program or batch file. Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
It then finishes the configuration and tells me 'Your Google Cloud SDK is configured and ready to use!' However, whenever I run any other commands, I get the same error popup again before it continues doing whatever the command does. I believe Python is installed correctly and added to Path, and when I call python from the same command line, same directory as my 'gcloud init' call, it functions as expected and opens a python console. Any ideas at what the problem might be? (or if it will even affect anything?)
Solution 1:[1]
Go to -> "start" and type "Manage App Execution Aliases". Go to it and turn off "Python"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Victor Biga |
