尝试使用conda更新JupyterLab时出错

问题描述 投票:0回答:1

我刚刚在一台新机器上安装了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,也会发生同样的情况。

这里有什么问题?

anaconda command-prompt conda jupyter-lab
1个回答
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
© www.soinside.com 2019 - 2024. All rights reserved.