目录

win10下的python3-中pip3安装错误,找不到ssl

win10下的python3 中pip3安装错误,找不到ssl

本电脑刚刚用python2.7安装好jupyter,然后被提示python2.7在20年停止支持,然后觉得现在慢慢开始转移到python3的版本了,决定用python3重新安装一下jupyter。然后发现pip在python3下用不了(将环境变量中的path值的python3移到最前面,自然先选择的python3)。在更新pip时发现ssl出错,大意是找不到ssl。

问题形容

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Could not fetch URL https:*******: There was a problem confirming the ssl certificate: 
Can't connect to HTTPS URL because the SSL module is not available. - skipping

解决思路

在python3的安装路径中找到openssl的安装路径,像博主的python3是用anaconda安装的,openssl的安装路径是 E:\Anaconda3\pkgs\openssl-1.1.1a-he774522_0\Library\bin 。然后将这个路径加入到环境变量中的path值当中,并移到最前。问题解决!

参考

1、

I can solve this problem by adding dir path of intel-python which has libeay32.dll (in my case ..\IntelPython3\pkgs\openssl-1.0.2l-vc14_intel_0\Library\bin) in system environment as top most position.

2、

这篇博客讲的是Ubuntu下的解决思路