pip: InsecurePlatformWarning: A true SSLContext object is not available

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jeremy_yangt/article/details/50414065

在用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
...

提示是由于urllib3SSL连接失败

解决方法:
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 !

猜你喜欢

转载自blog.csdn.net/jeremy_yangt/article/details/50414065
今日推荐