Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install the specific version of Python with Anaconda?

I want to install Anaconda with Python Version 3.6.5. If I install Anaconda3-5.2.0, It install Python 3.5.1. Where to download the Anaconda with Python 3.6.5. The Big Data Scripts work only with Anaconda Python 3.6.5.

like image 278
user12068803 Avatar asked Sep 15 '19 02:09

user12068803


People also ask

How do I install a specific version of Python?

To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion .

How do I get Python 3.7 in Anaconda?

This can be installed via conda with the command conda install -c anaconda python=3.7 as per https://anaconda.org/anaconda/python. Though not all packages support 3.7 yet, running conda update --all may resolve some dependency failures.

Can I use Python 3.10 with Anaconda?

Anaconda supports Python 3.7, 3.8, 3.9 and 3.10. The current default is Python 3.9.

How do I install Python 3.6 on Anaconda Navigator?

And Copy and rename the file Anaconda Prompt (Anaconda3) to Anaconda 3.6. 5 . Then right-click on the new file and click on "Properties". Finally, if you go to your Windows Start menu, you will see your new shortcut "Anaconda 3.6.


1 Answers

Anaconda Downloads

The Anaconda distribution with Python 3.6.5 was version 5.2.0.1 You can download this from the Anaconda distribution archive. If you do install from this, then make sure to update Conda immediately after installation:

conda update conda

However, I strongly recommend the following alternate solution as better practice.

Miniconda + Anaconda environment

Reasoning

What is installed in the base environment is relatively fixed once installed. Ultimately, you don't want to mess with your base environment, so best practice is to have the latest version there. Fortunately, you don't have to install a full Anaconda distribution, but rather can use a lightweight Miniconda (or Miniforge) distribution and create a secondary environment for the purpose of having an Anaconda Python 3.6.5 distribution. In the long run this will give you better stability.

Steps

  1. Download and install Miniconda or a Miniforge variant. Once that is working...

  2. Create your Anaconda env:

     conda create --name my_env -c anaconda python=3.6.5 anaconda=5.2.0
    
  3. Use your new isolated env:

     conda activate my_env
    

[1] I determined this by running conda create -n foo --dry-run -c anaconda python=3.6.5 anaconda and then examining the version of the anaconda package that Conda ended up with in the solve.

like image 66
merv Avatar answered Oct 14 '22 17:10

merv