简体   繁体   中英

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.

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 env

Reasoning

What is installed in the base env is relatively fixed once you've installed it. 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 the lightweight Miniconda distribution and create a secondary env 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 . Once that is working...

  2. Create your Anaconda env:

     conda create --name my_env 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.

In your anaconda prompt, you can manually update your python to the latest version with :

conda update python

In case you are not familiar with it, anaconda prompt is installed to your computer when you install anaconda. Just make a search for it on your computer.

You can refer to this post : How do I upgrade to Python 3.6 with conda?

Also try

conda install python=3.6.5

but you may encounter some incompatibility issues with other packages.

Alternatively, you may want to try creating a new environment. From the anaconda prompt, create a custom environment and specify the repository channel to find the version

conda create --name py365 python=3.6.5 --channel conda-forge

Activate the new environment

conda activate py365

However, the activation will not be permanent, and you will need to activate each time you start the anaconda prompt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM