Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud SDk: Python was not found

After I install Google cloud sdk in my computer, I open the terminal and type "gcloud --version" but it says "python was not found"

note: I unchecked the box saying "Install python bundle" when I install Google cloud sdk because I already have python 3.10.2 installed.

so, how do fix this?

Thanks in advance.

like image 799
Zeroz Avatar asked Dec 12 '25 22:12

Zeroz


1 Answers

On Windows, setting the CLOUDSDK_PYTHON environment variable fixes this, but when I first tried this I pointed the variable to the folder containing the python executable and that didn't work. The variable apparently must point to the executable file. enter image description here

like image 173
johnwargo Avatar answered Dec 14 '25 14:12

johnwargo