尝试使用 conda 更新 JupyterLab 时出错
Error while trying to update JupyterLab with conda
我刚刚在一台新机器上安装了 Anaconda(Microsoft Windows 10 Enterprise,64 位)。当我尝试启动 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
,也会发生同样的情况。
这里有什么问题?
看起来像是 SSL 问题,您是否在防火墙后面工作?
您可以通过编辑您的 .condarc 来关闭 ssl,这应该允许您进行更新。
conda config --set ssl_verify False
虽然我建议实际提供证书。我之前已经在这里回答过这个问题 - ,其中包含从浏览器导出 CA 证书的步骤。假设您将它保存到 C:\ca_certificates\my_certificate.cer 。然后你可以通过以下命令将你的 conda 配置指向它。
conda config --set ssl_verify C:\ca_certificates\my_certificate.cer
我刚刚在一台新机器上安装了 Anaconda(Microsoft Windows 10 Enterprise,64 位)。当我尝试启动 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
,也会发生同样的情况。
这里有什么问题?
看起来像是 SSL 问题,您是否在防火墙后面工作?
您可以通过编辑您的 .condarc 来关闭 ssl,这应该允许您进行更新。
conda config --set ssl_verify False
虽然我建议实际提供证书。我之前已经在这里回答过这个问题 -
conda config --set ssl_verify C:\ca_certificates\my_certificate.cer