'Cannot set up a conda environment with python 3.10

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.



Solution 1:[1]

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

Solution 2:[2]

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.

Solution 3:[3]

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

Solution 4:[4]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vbraun
Solution 2 Bharath Hegde
Solution 3 lpapp
Solution 4 DanielTuzes