您的位置:首页 > 编程语言 > Python开发

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

2017-08-17 16:21 936 查看
  找公司新开了一个云主机CentOS release 6.8,pip3安装库的时候报
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.


python3 -m pip install markupsafe
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting markupsafe
Could not fetch URL https://pypi.python.org/simple/markupsafe/: 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 markupsafe (from versions: )
No matching distribution found for markupsafe


sudo yum install openssl-devel


用base镜像源下载。

yum --enablerepo=base --enablerepo=updates install openssl-devel

./configure --enable-optimizations

make altinstall


之后再pip3安装成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐