无法在Anaconda中创建环境,更新conda,安装软件包 [英] Cannot create environment in anaconda, update conda , install packages
问题描述
CondaHTTPError:URL的HTTP 000连接失败 https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2 过去了:-
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/free/win-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.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host ='repo.anaconda.com',port = 443)):url超过了最大重试次数:/pkgs/free/win-64/repodata.json.bz2(由NewConnectionError( ':建立新连接失败:[Errno 11001] getaddrinfo失败',)),),)
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))",),)
推荐答案
您在使用ssl时遇到问题.其中一些已为我们输入了最新版本(使用自签名密钥),因此我们不得不在conda中关闭ssl_verification.
You are having issues with ssl. Some of these have entered in recent releases for us (using self signed keys) and so we have had to switch ssl_verification off in conda.
但这还不够,我们还必须手动删除用于指定SSL证书路径的REQUESTS_CA_BUNDLE环境变量.
This wasn't enough though, and we also had to manually remove the REQUESTS_CA_BUNDLE environment variable that we were using to specify the path to the SSL certificate.
# Remove SSL
conda config --set ssl_verify false
在此处查看github问题- https://github.com/ContinuumIO/anaconda-问题/问题/10340
See github issue here - https://github.com/ContinuumIO/anaconda-issues/issues/10340
这篇关于无法在Anaconda中创建环境,更新conda,安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!