Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrade to python 3.8 using conda

Python 3.8.0 is out, but I haven't been able to find any post on how to update to python 3.8 using conda - maybe they will wait for the official release? Any suggestions?

like image 733
mcguip Avatar asked Oct 26 '19 04:10

mcguip


People also ask

Can I use Python 3.8 with anaconda?

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

How to update my Python version in conda?

You can update your python version to 3.8 in conda using the command conda install -c anaconda python=3.8

How do I install a Conda environment in Python?

For example, to create a fresh conda environment called my-cool-project with Python 3.7 and its own pip, run the following: If you want a different version, like Python 3.6, just swap in python=3.6. From there you can activate the my-cool-project environment and then pip install or conda install whatever you need. For example:

What is the latest version of Python in Anaconda?

The latest version of Anaconda comes with Python 3.8. But sometimes you need to use an earlier release. With Anaconda, the preferred way to use a previous version of Python is to create a separate conda environment for each project.

How to update the Python version without virtual environment?

If you looking to use without virtual environment or in the environment than you can do the update of the python with: Show activity on this post. Open conda shell prompt. (On Windows Anaconda Powershell Prompt) You will get all the supported versions. It may look like:


4 Answers

You can update your python version to 3.8 in conda using the command

conda install -c anaconda python=3.8

as per https://anaconda.org/anaconda/python. Though not all packages support 3.8 yet, running

conda update --all

may resolve some dependency failures. You can also create a new environment called py38 using this command

conda create -n py38 python=3.8

Edit - note that the conda install option will potentially take a while to solve the environment, and if you try to abort this midway through you will lose your Python installation (usually this means it will resort to non-conda pre-installed system Python installation).

like image 154
mcguip Avatar answered Sep 28 '22 09:09

mcguip


Open Anaconda Prompt (base):

  1. Update conda:
conda update -n base -c defaults conda
  1. Create new environment with Python 3.8:
conda create -n python38 python=3.8
  1. Activate your new Python 3.8 environment:
conda activate python38
  1. Start Python 3.8:
python
like image 21
Nicolas Gervais Avatar answered Sep 28 '22 08:09

Nicolas Gervais


Now that the new anaconda individual edition 2020 distribution is out, the procedure that follows is working:

Update conda in your base env:

conda update conda

Create a new environment for Python 3.8, specifying anaconda for the full distribution specification, not just the minimal environment:

conda create -n py38 python=3.8 anaconda

Activate the new environment:

conda activate py38

python --version
Python 3.8.1

Number of packages installed: 303

Or you can do:

conda create -n py38 anaconda=2020.02 python=3.8

--> UPDATE: Finally, Anaconda3-2020.07 is out with core Python 3.8.3

You can download Anaconda with Python 3.8 from https://www.anaconda.com/products/individual

like image 42
Ruben Mejia Avatar answered Sep 28 '22 07:09

Ruben Mejia


Update for 2020/07

Finally, Anaconda3-2020.07 is out and its core is Python 3.8!

You can now download Anaconda packed with Python 3.8 goodness at:

  • https://www.anaconda.com/products/individual
like image 44
Simon Streicher Avatar answered Sep 28 '22 08:09

Simon Streicher