Anaconda无法更新


在安装完Anaconda,更新包时

C:\Users\Administrator>conda upgrade --all
WARNING: The conda.compat module is deprecated and will be removed in a future r
elease.
Collecting package metadata: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pk
gs/free/win-64/repodata.json.bz2>
Elapsed: -

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.


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
): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by
 SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."
))'))

需要安装 openSSL

下载OpenSSL 的 Windows 安装包   https://slproweb.com/products/Win32OpenSSL.html

Win64 OpenSSL v1.1.1b

安装之后就可以更新了

conda upgrade --all


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM