pytorch-error:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
所以需要使用Anaconda安裝的同學請儘快安裝,也可以將鏡像源更改爲中科大的鏡像源(最好先刪除.condarc文件,重寫鏡像配置)詳見:USTC鏡像
系統情況:Linux DGX-Station-01 4.4.0-116-generic #140-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
問題描述:我先前有下載過Pytorch較低版本(Ver0.1),使用Upgrade命令升級失敗後,刪除了原Pytorch重新下載高版本(Ver1.0),發現下載過程中Pytorch文件出現CondaHTTPError錯誤,下載失敗;隨後我刪除了這個環境,新建環境後重新下載高版本Pytorch,發現仍然是一樣的錯誤,在網上搜尋了很多帖子,修改鏡像源等等仍未解決。嘗試半天,終於發現癥結所在。
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/ conda config --set show_channel_urls yes
vim ~/.condrac channels: -https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ -https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/ -https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ -deafult show_channel_urls: true
最後文章參考了其他博客,表示極大的感謝!!!