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
最后文章参考了其他博客,表示极大的感谢!!!