您的位置:首页 > 移动开发 > Objective-C

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

2015-12-15 14:47 627 查看

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-dev
sudo apt-get install  libssl-dev
pip install --upgrade ndg-httpsclient


后期再安装pandas 还是失败

使用apt-get 方式安装

sudo apt-get install python-pandas


成功!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: