問(wèn)題
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 沒(méi)用循集,想到了手動(dòng)安裝
1.根據(jù)error提示:瀏覽器打開(kāi) https://conda.anaconda.org/conda-forge/win-64/ 痹栖,搜索并下載對(duì)應(yīng)壓縮包
2.安裝
conda install 路徑\壓縮包 // conda install C:\Users\fei\Downloads\cudatoolkit-11.6.0-hc0ea762_10.tar.bz2
特別地:
將壓縮包復(fù)制到Anaconda\pkgs
文件夾下
conda install --use-local 壓縮包 // conda install --use-local cudatoolkit-11.6.0-hc0ea762_10.tar.bz2
- 安裝完畢,重新執(zhí)行命令
conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge