解决CondaHTTPError: HTTP 000

2023-05-16

问题1

Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/repodata.json>
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.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/cloud/pytorch/linux-64/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')])")))'))

解决方法

有些博客写的

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

问题就出在这个https,改为http,也就是不加's',就好了。具体如下:

执行conda config --remove-key channels,删除添加的源,重新执行

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

问题2

pytorch、cudatoolkit、torchvision包下载速度缓慢,

添加pytorch源,删除语句'-c pytorch'参考如下:

 pytorch下载速度缓慢的完美解决方案_AI从入门到实践的博客-CSDN博客_pytorch下载太慢

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

解决CondaHTTPError: HTTP 000 的相关文章

随机推荐