在create一个新的conda环境时总是出现如下错误:
Collecting package metadata (repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/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.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
'https://repo.anaconda.com/pkgs/main/linux-64'
问题的根源应该是网络问题。
大部分解决方案是更换镜像源,但更换后并未解决问题。
另一个方案是增加延时到1000秒:
conda config --set remote_read_timeout_secs 1000.0
也未能解决。
最后找到一个更改ssl verification的方案:
conda config --set ssl_verify no
执行后成功的实现了环境的创建。
但是!!!请注意,原帖中提到修改ssl verification的方法是十分不推荐的(推测可能是安全问题?)。因此,不到万不得已请不要尝试此方案。