'Python (anaconda) not found when installing Google Cloud SDK
So the problem is as stated in the title: I'm trying to install Google Cloud SDK and my current Python installation is managed by Anaconda.
I have the following system paths set,
C:\Users\username\anaconda3\Scripts
C:\Users\username\anaconda3
The version installed is python 3.9, so I created environments with versions 3.7 and 3.8 just in case this was the issue and added their respective paths too:
C:\Users\username\anaconda3\envs\env_name
I've also tried installing it via CMD prompt, with "https://anaconda.org/conda-forge/google-cloud-sdk", but it won't find the files with any of the 3 options. I've also added the channel to the navigator and retried.
The main error lines I'm getting are:
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings -> Manage App Execution Aliases.
Welcome to the Google Cloud CLI!
ERROR: gcloud failed to load: DLL load failed while importing _ssl: The specified module could not be found.
Also, when I created the CLOUDSDK_PYTHON environment variable I got another error:
Output folder: C:\Users\UN\AppData\Local\Google\Cloud SDK
Downloading Google Cloud CLI core.
Extracting Google Cloud CLI core.
Create Google Cloud CLI bat file: C:\Users\UN\AppData\Local\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud CLI!
To use the Google Cloud CLI, 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.
Maybe I should just install the bundle python in the GC-SDK installation? I'm just worried it will mess with my paths for other projects.
EDIT: I've decided to install python and it works without problems. Unless anyone needs to explicitly install it with the anaconda version, my question is answered.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
