anaconda报SSLError异常
问题:
anaconda新建环境或者安装包的时候,报如下的SSLError异常:
SSLError(MaxRetryError(‘HTTPSConnectionPool(host=‘repo.anaconda.com’, port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”))’))
解决方案:
之前了解过http和https协议区别的朋友应该知道,在http的基础上加上ssl的证书可以达到安全性更高的https协议,所以这一块的问题,主要是证书和安全性。
步骤:
- 下载OpenSSL
https://slproweb.com/products/Win32OpenSSL.html
下载完,直接安装完之后即可