Bill Fredette
Bill Fredette

Reputation: 21

Google Cloud SDK must have Python installed and on your PATH

I have been using the Google SDK shell to upload files for our website. Now all of a sudden I get this error:

To use the Google Cloud SDK, you must have Python installed and on your PATH. As an alternative, you may also set the CLOUDSDK_PYTHON environment variable to the location of your Python executable.

What has changed?

I tried downloading the SDK installer again and get these results: Output folder: C:\Program Files (x86)\Google\Cloud SDK Downloading Google Cloud SDK core. Extracting Google Cloud SDK core. Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat Installing components. Welcome to the Google Cloud SDK! To use the Google Cloud SDK, you must have Python installed and on your PATH. As an alternative, you may also set the CLOUDSDK_PYTHON environment variable to the location of your Python executable. Failed to install. Please help me as I need to update our website.

Upvotes: 2

Views: 11014

Answers (4)

Kinan AlQassem
Kinan AlQassem

Reputation: 1

If you have Python already installed in your machine, it must be 2.7 or 3.2-2.8 version. and in your Environment Variables Sittings: Under System Variables: Select PATHEXT and press Edit. then add " .PY " for Python.

then add your Python path to User Variables -> PATH

then the Google Cloud CLI Setup will be installd.

Upvotes: 0

RUHULAMIN MOLLA
RUHULAMIN MOLLA

Reputation: 11

NO need to change verson. when you insall installation folder set C:\Python38-32 {i.e select c drive} follow the instruction you will be offered to add environment veriable tic the box and continue

that's it

Upvotes: 1

8columns
8columns

Reputation: 11

Try create envionment variable named "CLOUDSDK_PYTHON" and point to "python.exe" (put your own path). In my case , i did install Python 3.7, and this solve my problem.

Upvotes: 1

Deepak Malviya
Deepak Malviya

Reputation: 41

You can follow the below steps :

Step-1 -- Uninstall all Python version 3 and above
Step-2 -- Install Python version - 2.x.x (I have installed - 2.7.17)
Step-3 -- Restart your machine (not mandatory)
Step-3 -- Create environment variable - CLOUDSDK_PYTHON and provide value as C:\Python27\python.exe
Step-4 -- Run GoogleCloudSDKInstaller.exe again

I think it should work but if it didn't then run GoogleCloudSDKInstaller.exe for single user then all users

Upvotes: 4

Related Questions