Environment set up

(base) C:\Users\小明>conda create --prefix D:\Anaconda3\envs\pytorch_env python=3.10
3 channel Terms of Service accepted
Retrieving notices: done
Channels:

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

  • python=3.10

Hi — thanks for reporting this.

The PackagesNotFoundError for python=3.10 is almost certainly a channel issue, since multiple versions of Python 3.10 are definitely available on our defaults channel for win-64.

A couple of things to check:

Could you share the output of conda config --show channels and conda config --show default_channels? That will help us see your full channel setup. It looks like you’re using Tsinghua mirrors, and sometimes those mirrors have been filtered which can cause resolution failures like this.

As a quick test, try creating the environment with our channel explicitly:

conda create --prefix D:\Anaconda3\envs\pytorch_env python=3.10 -c https://repo.anaconda.com/pkgs/main/

If that works, the issue is with one of your configured mirror channels. If it fails with a connection error, that likely means there’s a network restriction between you and repo.anaconda.com, and we can help troubleshoot from there.

You can also run conda search python to see which versions of Python are available across all of your configured channels. That can help pinpoint where the gap is.

Also worth flagging that this could be related to issues that are currently being investigated related to anaconda.org.

You can keep up with status on Anaconda Status - Increased error rate on anaconda.org