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: - cudnn=8.1 - cudatoolkit=11.2 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.
时间: 2023-06-17 20:06:46 浏览: 204
针对Collecting package metadata (current-repodata.json)- faile的解决
5星 · 资源好评率100%
这个错误提示是因为你的环境中需要安装的 cudnn 和 cudatoolkit 的版本在当前的 channels 中找不到。你可以通过以下方式解决:
1. 检查你的 conda 版本是否最新。可以通过 `conda update conda` 命令进行更新。
2. 添加新的 channels,如 conda-forge,尝试寻找需要的包,可以通过以下命令添加 conda-forge 渠道:
```bash
conda config --add channels conda-forge
```
3. 更新 conda,然后再尝试安装缺失的包:
```bash
conda update --all
conda install cudnn cudatoolkit
```
阅读全文