pip cannot confirm SSL certificate: SSL module is not available

Posted Go_Forward

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip cannot confirm SSL certificate: SSL module is not available相关的知识,希望对你有一定的参考价值。

centos6.8编译安装python2.7之后,使用pip报错:pip cannot confirm SSL certificate: SSL module is not available

 

解决方法:

安装openssl-devel 后重新编译安装python

ref:

https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi 

https://stackoverflow.com/questions/44290926/pip-cannot-confirm-ssl-certificate-ssl-module-is-not-available

https://stackoverflow.com/questions/41328451/ssl-module-in-python-is-not-available-when-installing-package-with-pip3 

以上是关于pip cannot confirm SSL certificate: SSL module is not available的主要内容,如果未能解决你的问题,请参考以下文章

使用pip报错:Could not fetch URL https://pypi.org/simple/: There was a problem confirming the ssl certi

使用pip报错:Could not fetch URL https://pypi.org/simple/: There was a problem confirming the ssl certi

There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert

pip install ImportError: cannot import name 'SourceDistribution'

pip下载报错cannot import name 'FormatControl'

解决pip3的ImportError: cannot import name 'main'