Mitchell Stearns
Mitchell Stearns

Reputation: 17

Change version of Python via Anaconda Prompt

I am trying to download python for a colleague via Anaconda. We are trying to download the right version as to maintain compatibility with Power BI. We're looking to implement Python visuals from within Power BI. By default, 3.7 is downloaded. I have read that 3.7 is not supported within Power BI. I need to downgrade to 3.6.5 (my version that I have confirmed works).

We have tried opening the anaconda prompt and running conda install python=3.6.5

When running the above, we're told all of the upgrades and downgrades that will take place, we accept them, they all render to 100% but the code returns/ends with "[Errno 13] Permission denied: 'C:\Users\NAME\AppData\Local\Continuum\anaconda3\python.exe'"

After the "change" we run: import sys print(sys.version)

and he is still returns 3.7.3

Should we be attempting to change the version of python from within anaconda prompt? Command prompt? Do we need to uninstall anaconda altogether and specify a particular version of python to install? Will uninstalling anaconda uninstall python?

THANK YOU!

Upvotes: 0

Views: 1875

Answers (1)

d_kennetz
d_kennetz

Reputation: 5359

You can run it this way, so each version of python has its own anaconda environment (this will install all of anaconda's default packages in this environment as well):

conda create --name python3.6.5 python=3.6.5 anaconda

And when you want to use this version of python and all the installed packages do:

conda activate python3.6.5

To just create the environment without anaconda's default packages:

conda create --name python3.6.5 python=3.6.5

Upvotes: 1

Related Questions