conda SSL错误 SSLError("Can\'t connect to HTTPS URL because the SSL module is not available.解决办法

系统:win10
miniconda: 3.7.1 64bita

安装完miniconda之后,使用conda包管理器安装包出现了多种问题,最开始是源的问题,这个问题网上很多,解决了这个问题之后还有一个问题是SSLError("Can\'t connect to HTTPS URL because the SSL module is not available. ,笔者的.condarc文件内容如下:

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
ssl_verify: true
show_channel_urls: true

使用conda命令安装出现的错误如下:

λ conda upgrade conda
Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/repodata.json>
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.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/free/win-64/repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

完整解决办法
中文网上的解决办法都不行,最后是在github一个问题讨论中找到了解决办法
前往下面地址:

https://slproweb.com/products/Win32OpenSSL.html

下载对应自己系统的OpenSSL的EXE安装包,笔者选择的是Win64 OpenSSL v1.1.1b,43M大小,安装之后就可以正常使用了(笔者安装在了默认路径C盘)
在这里插入图片描述

  • 46
    点赞
  • 78
    收藏
    觉得还不错? 一键收藏
  • 43
    评论
评论 43
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值