How to install python3.9 with conda?

bigbounty picture bigbounty · Aug 2, 2020 · Viewed 16.3k times · Source

I'm trying to install python 3.9 in a conda enviroment. I tried creating a new conda env using the following command,

conda create --name myenv python=3.9

But I got an error saying package not found because python 3.9 is not yet released

So, I manually created a folder in envs folder and tried to list all envs. But I couldn't get the manually created new environment.

So, how do I install python 3.9 in a conda env with all functionalities like pip working?

Answer

Nzbuu picture Nzbuu · Oct 7, 2020

On 6-Oct-2020, Python 3.9 was made available on conda-forge: https://anaconda.org/conda-forge/python. However, most of the other packages (including some of the essentials to create a basic environment) didn't explicitly support Python 3.9 yet.

However (as of 15-Oct-2020), the basic dependencies appear to have been fixed and the following command now works:

conda create -c conda-forge python=3.9 -n py39-demo