anaconda创建虚拟环境,通道无效

img

conda create -n pytorch python=3.9.12
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  • python=3.9.12

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

麻烦各位帮忙指教一下,万分感谢!

试试指定另一个channel吧,例如conda-forge。

conda create -c conda-forge -n pytorch python=3.9.12

可以看下python参考手册中的 python- 创建虚拟环境