Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. PackagesNotFoundError: The following packages are not available from current channels: - cudatoolkit=11.1 Current channels: - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64 - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64 - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64 - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch - 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.
时间: 2023-08-24 16:04:34 浏览: 230
针对Collecting package metadata (current-repodata.json)- faile的解决
5星 · 资源好评率100%
这个错误提示说明当前的conda channels(镜像源)中没有可用的cudatoolkit=11.1包。
您可以尝试添加conda-forge channels,该channels中包含了更多的第三方软件包。使用以下命令添加conda-forge channels:
```
conda config --add channels conda-forge
```
然后再次尝试安装PyTorch和cudatoolkit:
```
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge
```
这种方式会先从pytorch channels中查找软件包,如果找不到再从conda-forge channels中查找。
希望这个解决方法可以帮助到您。
阅读全文