0

我刚刚在一台新机器(Microsoft Windows 10 Enterprise,64 位)上安装了 Anaconda。当我尝试启动 JupyterLab 时,我看到需要更新包。但是,我总是收到以下错误:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/free/win-64/repodata.json.bz2>

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=\'repo.continuum.io\', port=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')],)",),))',),)

如果我conda从提示中使用,也会发生同样的情况。

这里有什么问题?

4

1 回答 1

2

看起来像是 SSL 问题,您是否在防火墙后面工作?

您可以通过编辑 .condarc 来关闭 ssl,这应该允许您进行更新。

conda config --set ssl_verify False

尽管我建议实际上提供证书。我以前在这里回答过这个问题 - CondaHTTPError - SSL error while installed NLTK,其中包含从浏览器导出 CA 证书的步骤。假设您将其保存到 C:\ca_certificates\my_certificate.cer 。然后,您可以通过以下命令将您的 conda 配置指向它。

conda config --set ssl_verify C:\ca_certificates\my_certificate.cer
于 2018-03-06T15:01:26.317 回答