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 
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盘)
conda SSL错误 SSLError(

你可能感兴趣的:(Python,机器学习,miniconda,openssl,conda,error)