conda create时报CondaHTTPError,已解决

95 阅读1分钟

问题描述

windows,x64系统。 已知conda源是清华的。conda create创建新环境时报错如下:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/current_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.
'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64'

无效尝试

试过把https换成http,condahttperror不报,会报json相关的新错。

试过在.condarc的最后一行加ssh_verify=false,没用。

解决方案

按照清华镜像站anaconda首页mirror.tuna.tsinghua.edu.cn/help/anacon… 的说明,把本地的.condarc文件内容替换为图中内容

图片.png

然后将本地E:\anaconda3\Library\bin中的

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

这2个文件copy到E:\anaconda3\DLLs中即可。

参考文献

感谢blog.csdn.net/Dust_Evc/ar… 的有效帮助。