Error installing Google Cloud SDK on Windows 7

0 views
Skip to first unread message

Rajat Shah via StackOverflow

unread,
Apr 9, 2016, 10:19:07 PM4/9/16
to google-appengin...@googlegroups.com

I recently installed Python 3.5 64-bit on Windows 7. Now while trying to install Google Cloud SDK I am getting following error:

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!
  File "C:\Python\Lib\site.py", line 176
    file=sys.stderr)
        ^
SyntaxError: invalid syntax
  File "C:\Python\Lib\site.py", line 176
    file=sys.stderr)
        ^
SyntaxError: invalid syntax
Failed to install.

I haven't modified any of the Python Lib files.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/36525004/error-installing-google-cloud-sdk-on-windows-7

zenlambda via StackOverflow

unread,
Apr 9, 2016, 10:59:07 PM4/9/16
to google-appengin...@googlegroups.com

I don't think the Google Cloud SDK can run on Python 3 (the system requirements state that Python 2.7.x is required).

There is a 'bundled python' option in the windows GUI installer if you need to quickly install a Python 2.7 just for these tools.

Note that it is only the CLI tools that require Python 2.7. The python API libraries google-api-python-client and gcloud-python will work with python 3.5. So depending on what you are doing, you can still use Python 3 in your projects.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/36525004/error-installing-google-cloud-sdk-on-windows-7/36525223#36525223

zenlambda via StackOverflow

unread,
Apr 10, 2016, 3:44:04 AM4/10/16
to google-appengin...@googlegroups.com

I don't think the Google Cloud SDK can run on Python 3 (the system requirements state that Python 2.7.x is required).

There is a 'bundled python' option in step 5 of the windows GUI installer (after you choose the installation path) if you need to quickly install a Python 2.7 just for these tools.

Google Cloud Installer Step 5]

Note that it is only the CLI tools that require Python 2.7. The python API libraries google-api-python-client [1] and gcloud-python [2] will work with python 3.5. So depending on what you are doing, you can still use Python 3 in your projects.

[1] From the google-api-python-client README.md

Python 3.3+ is also now supported! However, this library has not yet been used as thoroughly with Python 3, so we'd recommend testing before deploying with Python 3 in production.

[2] Listed under Python 3 categories on PyPi

Reply all
Reply to author
Forward
0 new messages