Google Cloud SDK installation failed on Windows
Hello readers, this is a different article than the regular one. Today I was facing an issue to install Google Cloud SDK on windows so after spending a few hours on it, I succeeded. So I decided to share it with you.
Google Cloud SDK installation failed on windows, Google cloud sdk installation failed, google cloud sdk failed to install, Google Cloud SDK installer fails on Windows 7/8/10, Google Cloud SDK installer fails to complete component installation on Windows 7, ERROR: gcloud failed to load: ‘ascii’ codec can’t decode byte, 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.
I am trying to install Google Cloud SDK from the link below in windows system (For me it’s Windows 10 Pro).
Download Link: https://cloud.google.com/sdk/docs/quickstart-windows
During the installation of it I received an error as below.
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.
Below is the same error while executing the command in Google Cloud SDK Shell.
Solution:
Step 1:Download the Python from https://www.python.org/downloads/release/python-2714/ and installed latest Python @2.7.14 (Google SDK doesn’t work with Python 3)
Step 2:Now set the CLOUDSDK_PYTHON
environment variable to the location of your Python executable. The default path to executable is C:\Python27\python.exe
for me.
At last restart the system and try to install the Google Cloud SDK.
That’s it. Hope this will work for you!
Thank you for reading! Happy Coding!