嗨,我正试图在pycharm上的conda环境中安装torch,但我收到了这个错误:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- torch
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
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.
有人能帮忙吗?谢谢
Python模块的名称为torch
,Conda包的名称为pytorch
。通常,用户会遵循官方建议并创建一个专门的环境。例如,
conda create -n pytorch -c pytorch -c conda-forge python=3.9 pytorch torchvision torchaudio
包括您计划在创建时使用的所有程序包(例如,包括cudatoolkit
或cpuonly
(。