Error while trying to update JupyterLab with conda

时间:2018-03-06 13:01:55

标签: anaconda command-prompt conda jupyter-lab

I have just installed Anaconda on a new machine (Microsoft Windows 10 Enterprise, 64-bit). As I try to launch JupyterLab, I see that the package needs to be updated. However, I always get the following error:

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\')],)",),))',),)

The same happens if I use conda from the prompt.

What is the problem here?

1 个答案:

答案 0 :(得分:2)

看起来像SSL问题,你是在防火墙后工作吗?

您可以通过编辑.condarc来关闭ssl,这样可以让您更新。

conda config --set ssl_verify False

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

conda config --set ssl_verify C:\ca_certificates\my_certificate.cer