在用pip7.1.2版本安装第三方模块时出现了如下警告:
...
_vendor/requests/packages/urllib3/util/ssl_.py:90:
InsecurePlatformWarning: A true SSLContext object is not
available. This prevents urllib3 from configuring SSL
appropriately and may cause certain SSL connections to fail
...
提示是由于urllib3的SSL连接失败
解决方法:
1, 安装python-devel libffi-devel openssl-devel
# yum install python-devel libffi-devel openssl-devel
2, 安装pyopenssl ndg-httpsclient pyasn1
# pip install pyopenssl ndg-httpsclient pyasn1
End !

本文介绍了解决使用pip7.1.2版本安装第三方模块时出现的SSL警告的方法。主要原因是urllib3的SSL配置出现问题导致连接失败。通过安装特定的依赖包可以解决此问题。
207

被折叠的 条评论
为什么被折叠?



