我按照你发给我的,但是它报错了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.2 Current channels: - https://repo.anaconda.com/pkgs/main/linux-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/linux-64 - https://repo.anaconda.com/pkgs/r/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.
时间: 2024-01-12 07:04:55 浏览: 275
针对Collecting package metadata (current-repodata.json)- faile的解决
5星 · 资源好评率100%
这个错误是因为 cudatoolkit=11.2 包没有在当前的 conda channels 中找到,可以尝试添加其他 channels 来解决这个问题。
你可以尝试添加 pytorch channels 来安装 cudatoolkit=11.2 包,具体命令如下:
```
conda config --add channels pytorch
conda install pytorch torchvision torchaudio cudatoolkit=11.2 -c pytorch -c nvidia
```
如果还是出现错误,你可以尝试升级 conda 的版本,或者使用其他方式来安装 cudatoolkit=11.2 包。
阅读全文