Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Anaconda 尝试使用conda更新JupyterLab时出错_Anaconda_Command Prompt_Conda_Jupyter Lab - Fatal编程技术网

Anaconda 尝试使用conda更新JupyterLab时出错

Anaconda 尝试使用conda更新JupyterLab时出错,anaconda,command-prompt,conda,jupyter-lab,Anaconda,Command Prompt,Conda,Jupyter Lab,我刚刚在一台新机器上安装了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

我刚刚在一台新机器上安装了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\')],)",),))',),)
CondaHTTPError:url的HTTP 000连接失败
尝试检索此URL时发生HTTP错误。
HTTP错误通常是断断续续的,一次简单的重试就可以让您上路。
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.continuum.io\',port=443):url超过最大重试次数:/pkgs/free/win-64/repodata.json.bz2(由SSLError(SSLError)('SSL例程\','ssl3\u获取服务器\u证书\','certificate very verify failed\'),),,)引起)
如果在提示符下使用
conda
,也会发生同样的情况


这里的问题是什么?

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

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

conda config --set ssl_verify False
尽管我建议实际上提供一个证书。我以前在这里回答过这个问题-,其中包含从浏览器导出CA证书的步骤。假设您将其保存到C:\ca\u certificates\my\u certificate.cer。然后,您可以通过以下命令将conda配置指向它

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

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

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

conda config --set ssl_verify False
尽管我建议实际上提供一个证书。我以前在这里回答过这个问题-,其中包含从浏览器导出CA证书的步骤。假设您将其保存到C:\ca\u certificates\my\u certificate.cer。然后,您可以通过以下命令将conda配置指向它

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

嗯,我已经运行了您的第一行代码,大概是为了更新JupyterLab。但是,当我从Anaconda Navigator或提示符中启动它时,我会收到消息:404:Not Found您正在请求一个不存在的页面!在命令提示符下,尝试使用“conda search conda”作为命令,并报告您看到的错误。好的,我已经运行了您的第一行代码,并且可能是为了更新JupyterLab。但是,当我从Anaconda Navigator或提示符中启动它时,我会收到消息:404:Not Found您正在请求一个不存在的页面!在命令提示符下,尝试将“conda search conda”作为命令,并报告您看到的错误