Cannot set up a conda environment with python 3.10

Viewed 30227

I am trying to set up a conda environment with python 3.10 installed. For some reason, no install commands for additional packages are working. For example, if I run conda install pandas, I get the error:

PackagesNotFoundError: The following packages are not available from current channels:

  - python=3.1

conda install -c conda-forge pandas doesn't work either. Not sure what the problem is.

6 Answers

Thats a bug in conda, you can read more about it here: https://github.com/conda/conda/issues/10969

Right now there is a PR to fix it but its not a released version. For now, just stick with

conda install python=3.9

Adding an answer as this issue has been fixed in the latest conda update. I faced the same issue in conda version 4.10.1 but it worked fine in version 4.11.0.

Update conda to the latest version with

conda update -n base -c defaults conda

Now install the required packages.

conda install -n py310 python=3.10 works for me.

Conda 4.10 is incompatible with python 3.10.

To use python 3.10 or newer, you need to update to conda 4.11+. If you cannot update conda, you need to revert to python 3.9 or older.

Read more on the on the link provided by vbraun. This reply is to clarify possibilities for the users.

We must create a new environment with latest version of python and change to this new environment inside anaconda navigator

Can also use the conda-forge channel:

conda install -c conda-forge python=3.10
Related