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

来源:互联网 发布:苹果电脑浏览图片软件 编辑:程序博客网 时间:2024/05/21 10:58

  找公司新开了一个云主机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 markupsafepip 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-optimizationsmake altinstall

之后再pip3安装成功

阅读全文
0 0
原创粉丝点击