python 安装pandas 出现InsecurePlatformWarning: A true SSLContext object is not available.

来源:互联网 发布:仿链家系统源码模板 编辑:程序博客网 时间:2024/06/10 12:00

python 安装pandas 出现InsecurePlatformWarning: A true SSLContext object is not available.

操作系统:ubuntu 14

python 版本:2.7.6

当我安装pandas

pip install pandas出现如下错误

/usr/local/lib/python2.7/dist-packages/pip/_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. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

按照http://stackoverflow.com/questions/29099404/ssl-insecureplatform-error-when-using-requests-package?lq=1 ,

#第一招就是直接升级python版本到2.7.9+即可解决问题##如果不想升级系统python版本 sudo apt-get install python-dev sudo apt-get install libffi-devsudo apt-get install  libssl-devpip install --upgrade ndg-httpsclient 

后期再安装pandas 还是失败

使用apt-get 方式安装

sudo apt-get install python-pandas

成功!

0 0