pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
2015-12-22 22:20
519 查看
http://blog.csdn.net/henulwj/article/details/48131393/
在用pip7.1.2版本安装第三方模块时出现了如下警告:
提示是由于urllib3的SSL连接失败
yum install python-devel libffi-devel openssl-devel
之后在安装pyopenssl ndg-httpsclient pyasn1
pip install pyopenssl ndg-httpsclient pyasn1
在运行pip就不会出现警告了
在用pip7.1.2版本安装第三方模块时出现了如下警告:
<code class="hljs avrasm has-numbering">/usr/lib/python2<span class="hljs-number">.7</span>/site-packages/pip-<span class="hljs-number">7.1</span><span class="hljs-number">.2</span>-py2<span class="hljs-number">.7</span><span class="hljs-preprocessor">.egg</span>/pip/_vendor/requests/packages/urllib3/util/ssl_<span class="hljs-preprocessor">.py</span>:<span class="hljs-number">90</span>: <span class="hljs-label">InsecurePlatformWarning:</span> A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately <span class="hljs-keyword">and</span> may cause certain SSL connections to fail. For more information, see <span class="hljs-label">https:</span>//urllib3<span class="hljs-preprocessor">.readthedocs</span><span class="hljs-preprocessor">.org</span>/en/latest/security<span class="hljs-preprocessor">.html</span><span class="hljs-preprocessor">#insecureplatformwarning.</span></code><ul style="display: block;" class="pre-numbering"><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li></ul>
提示是由于urllib3的SSL连接失败
解决方法
首先安装python-devel libffi-devel openssl-develyum install python-devel libffi-devel openssl-devel
之后在安装pyopenssl ndg-httpsclient pyasn1
pip install pyopenssl ndg-httpsclient pyasn1
在运行pip就不会出现警告了
相关文章推荐
- 高效开发iOS系列(runtime篇) -- 巧妙运用对象关联(Associated Objects)来设计alertview
- A Practicable Method for Ferromagnetic Object Moving Direction Identification
- Object类的常见方法
- 【Objective-C学习记录】第二十一天
- Objective-C——判断对象等同性
- objective-C_语言_委托模式
- Objective-C_语言_单例模式
- Objective-C代码混淆
- #Objective - C - sixth-Day 数组排序及集合遍历
- Objective-C:Foundation框架-结构体
- Objective--C UI UITableView编辑
- GridView绑定后翻页问题解决(PageIndexChanging(object sender, GridViewPageEventArgs e))
- Objective-C中的Method Swizzling
- js打印object信息
- SQL Server OBJECT_ID() 函数
- 自己做得json测试类,包含JSONArray,JSONObject,Gson基本使用方法
- Objective-C:Foundation框架-概述
- Objective-C文件和目录操作,IOS文件操作,NSFileManager使用文件操作
- Objective-C 工厂方法
- Object_C 中的通知 iOS