首页 > 编程语言 > 详细

pip3问题pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail

时间:2019-05-09 11:02:50      阅读:3208      评论:0      收藏:0      [点我收藏+]
python安装完毕后,提示找不到ssl模块:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting xxx
Could not fetch URL https://pypi.python.org/simple/xxxx/: There was a problem confirming the ssl certificate: Can’t connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement xxx (from versions: )
No matching distribution found for xxx

解决方法:

yum install openssl openssl-devel -y 
vi /usr/src/Python**/Modules/Setup
 取消注释:
SSL=/usr/local/ssl
_ssl _ssl.c     -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl     -L$(SSL)/lib -lssl -lcrypto
重新编译:
./configure --prefix=/usr/local/python
make
make install

pip3问题pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail

原文:https://www.cnblogs.com/yuanqc/p/10836502.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!