问题
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
- 安装完毕,重新执行命令
conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge
网友评论