从conda提示符安装任何软件包时出现SSL错误 [英] SSL Error while installing any package from conda prompt

查看:554
本文介绍了从conda提示符安装任何软件包时出现SSL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Anaconda Navigator进行机器学习实验.最近,无论我尝试使用conda提示符进行何种安装,我都开始收到此奇怪的SSL错误.该错误是SSL错误.我正在发布我收到的错误消息

I use Anaconda Navigator for my machine learning experiments. Recently, I have started getting this strange SSL error no matter what I try to install using conda prompt. The error is SSL error. I am posting the error message that I get

解决环境:失败

Solving environment: failed

CondaHTTPError:URL的HTTP 000连接失败 https://repo.anaconda.com/pkgs/free/linux-64/repodata.json.bz2 过去了:-

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/free/linux-64/repodata.json.bz2 Elapsed: -

尝试检索此URL时发生HTTP错误. HTTP错误 通常是断断续续的,只需重试即可.

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.

如果您当前的网络已阻止 https://www.anaconda.com 向您的网络工程团队提出支持请求.

If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host = \'repo.anaconda.com \', port = 443):网址超过了最大重试次数: /pkgs/free/linux-64/repodata.json.bz2(由 SSLError(SSLError(不好的握手:错误([(\'SSL例程\', \'ssl3_get_server_certificate \',\'证书验证 失败\')],),),))',),)

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/free/linux-64/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')],)",),))',),)

我有一个机构代理服务器;凭据,apt.conf文件等都可以.

I have an institutional proxy server; the credentials, apt.conf file etc are all OK.

即使那样,我也无法使用conda安装任何软件包.

Even then I am not able to install any package using conda.

有趣的是,我已经使用conda提示符安装了许多软件包,直到最近我再也没有遇到过这样的错误.另外,我能够按照错误消息中的链接(使用浏览器)进行操作,这意味着代理不会阻止该网站.

Interestingly, I have installed numerous packages using conda prompt and I never faced any such error until recently. Also, I am able to follow the links (using the browser) given in the error message which means that the proxy is not blocking the site.

我被要求使用

conda config --set ssl_verify True

但即使这样也无济于事.有帮助吗?

but even this did not help. Any help ?

我什至输入了使用conda安装任何软件包时出现HTTP错误

推荐答案

尝试将这些文件从Anaconda3/Library/bin复制到Anaconda3/DLL:

Try copying these files from Anaconda3/Library/bin to Anaconda3/DLLs :

libcrypto-1_1-x64.dll

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

libssl-1_1-x64.dll

这篇关于从conda提示符安装任何软件包时出现SSL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆