【问题标题】:Error while trying to update JupyterLab with conda尝试使用 conda 更新 JupyterLab 时出错
【发布时间】:2018-08-14 08:27:32
【问题描述】:

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

这里有什么问题?

【问题讨论】:

    标签: anaconda command-prompt conda jupyter-lab


    【解决方案1】:

    看起来像是 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
    

    【讨论】:

    • 好吧,我已经运行了你的第一行代码,大概是为了更新 JupyterLab。但是,当我从 Anaconda Navigator 或提示中启动它时,我收到消息: 404 : Not Found You are requesting a page that does not exist!
    • 在命令提示符下,尝试 'conda search conda' 作为命令并报告您看到的错误
    猜你喜欢
    • 2019-09-10
    • 2023-01-21
    • 2017-04-14
    • 1970-01-01
    • 1970-01-01
    • 2018-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多