下载pytorch时出现下列报错
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/nvidia/win-64/libcufft-dev-10.9.0.58-0.t>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/nvidia/win-64/libcufft-dev-10.9.0.58-0.t>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
这个错误提示表明在尝试从指定的 URL 下载库文件时出现了 HTTP 连接问题。通常情况下,这种错误是暂时的,可能只是由网络问题或服务器问题引起的。您可以尝试重新运行下载命令,或稍后重试,通常情况下会解决问题。如果问题持续存在,请确认您的网络连接稳定,或者尝试使用 VPN 连接。
解决方法:
更换国内源
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
如果还是出错,清除原来的源设置,再更换为其他的国内源
清空源命令
conda config --remove-key channels