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?


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).

Consider this before attempting an in-place Python upgrade. There is often a couple month delay between a major Python release (e.g. Python 3.7 to Python 3.8) and Anaconda defaulting to this version. We strongly suggest waiting until the new Python version is the default before trying to upgrade, as many packages many be missing or broken until


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

1. 1 other reacted with thanks. Show activity on this post. 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.


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

As per https://www.anaconda.com/anaconda-individual-edition-2020-02/

If you need an exact set of packages then create a conda environment to hold them. Thanks to the conda package cache and the way file linking is used doing this is typically i) fast and ii) consumes very little additional disk space. E.g. conda create -n myspecialenv -c bioconda -c conda-forge python=3.5 pandas beautifulsoup seaborn nltk


If your conda installation is for Python 2.7 then conda create will create a 2.7 version. changing command to conda create --name 3point6 python=3 (adding =3 at the end) makes a python3 version. – Jonah Graham Mar 4 '17 at 22:46


Managing Python¶ When you create a new environment, conda installs the same Python version you used when you downloaded and installed Anaconda. If you want to use a different version of Python, for example Python 3.5, simply create a new environment and specify the version of Python that you want.


Questions: I’m new to Conda package management and I want to get the latest version of Python to use f-strings in my code. Currently my version is (python -V): Python 3.5.2 :: Anaconda 4.2.0 (x86_64) How would I upgrade to Python 3.6? Answers: Anaconda has not updated python internally to 3.6. If you wanted to