已解决PackagesNotFoundError: The following packages are not available from current channels

已解决PackagesNotFoundError: The following packages are not available from current channels_第1张图片

通过修改condarc文件,添加了两个channels

  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/

我的.condarc文件:

ssl_verify: true
show_channel_urls: true

channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/

安装PyTorch

conda install pytorch torchvision torchaudio cudatoolkit=11.3

你可能感兴趣的:(深度学习,PyTorch,python)