首页 > 解决方案 > 由于 Windows 10 上的 SSL,Julia 中的 conda 安装失败

问题描述

conda install xxx失败并出现以下错误:

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): 最大重试次数超过了 url: /pkgs/main/win-64/current_repodata.json (由 SSLError(SSLError("握手错误:错误([(\'SSL 例程\',\'tls_process_server_certificate\',\'证书验证失败\')])“)))'))

也许必须有一些非常微妙的东西导致我的环境出现问题,但我真的不知道。

它曾经可以工作,但是在我重新安装 Windows 10 映像后,问题开始出现。它在 Windows 10 上。Conda 版本是 4.7.12。我的 .condarc 放在 %USERPROFILE% 中,看起来像:

channels:
  - defaults


show_channel_urls: true
allow_other_channels: true


proxy_servers:
  https: https://x.x.x.x:8080

ssl_verify: false

Internet 上针对上述错误的所有可用建议都表明将 ssl_verify 设置为 false 就足够了。

我还应该去哪里看看?

编辑:我在以下位置找到了一些有用的信息: https ://stackoverflow.com/a/56717433/7341479

它解决了运行在管理员中打开的 conda install Anaconda Powershell 的问题。但是当我在 Julia 中运行 pkg build PyCall 时它仍然存在

标签: ssljuliaconda

解决方案


推荐阅读