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、Intel Developer Zone

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下的解决思路
  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值