Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conda install downgrade python version

I'm trying to downgrade python version of anaconda via conda install python=3.3, but have following error:

~/anaconda3/bin$ ./conda install python=3.3 Fetching package metadata ......... Solving package specifications: .   UnsatisfiableError: The following specifications were found to be in conflict:   - gevent -> python 2.6*   - python 3.3* Use "conda info <package>" to see the dependencies for each package. 

How to resolve conflicts with the packages?

like image 935
mrgloom Avatar asked Apr 26 '17 09:04

mrgloom


People also ask

Can I downgrade Python version in anaconda?

You can use three effective methods to downgrade the version of Python installed on your device: the virtualenv method, the Control Panel method, and the Anaconda method.

How do I downgrade to a specific version of Python?

We can remove and install the required version of Python to downgrade it. First, we need to download the package from the official website and install it. Then, we need to go to the Frameworks\Python. framework\Versions directory and remove the version which is not needed.


1 Answers

If you want to set specific version, use it like this:

WARNING: This command will overwrite the default python version system-wise

conda install python=3.6 


To create environment with a specific version, you can do:

conda create -n $PYTHON36_ENV_NAME python=3.6 anaconda  # set custom env name 

The anaconda at the end allows the env to use all anaconda packages


For more information refere to Anaconda documentation

like image 170
CermakM Avatar answered Sep 28 '22 11:09

CermakM