美文网首页
Anaconda 安装 PyTorch 时 cudatoolki

Anaconda 安装 PyTorch 时 cudatoolki

作者: 斐硕人 | 来源:发表于2022-10-17 20:27 被阅读0次

问题

conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/win-64/cudatoolkit-11.6.0-hc0ea762_10.tar.bz2>

解决

尝试https -> http 没用,想到了手动安装
1.根据error提示:浏览器打开 https://conda.anaconda.org/conda-forge/win-64/ ,搜索并下载对应压缩包

下载压缩包
2.安装
conda install 路径\压缩包 // conda install C:\Users\fei\Downloads\cudatoolkit-11.6.0-hc0ea762_10.tar.bz2

特别地:
将压缩包复制到Anaconda\pkgs文件夹下

conda install --use-local 压缩包 // conda install --use-local cudatoolkit-11.6.0-hc0ea762_10.tar.bz2
  1. 安装完毕,重新执行命令conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge

相关文章

网友评论

      本文标题:Anaconda 安装 PyTorch 时 cudatoolki

      本文链接:https://www.haomeiwen.com/subject/hsjszrtx.html