CentOS 5.8_64 环境下面安装Pip 报ValueError: check_hostname requires server_hostname 解决办法
来源:互联网 发布:中大网络继续教育学院 编辑:程序博客网 时间:2024/06/05 20:42
PIP 安装 https://pip.pypa.io/en/latest/installing.html
在CentOS 5.8_64 下面安装完 python-2.7.9 之后再安装pip 时一直报
lib/python2.7/ssl.py", line 537, in __init__
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname
处理办法:
python get-pip.py --trusted-host pypi.python.org
如果指定给当前用户可以使用
python get-pip.py --trusted-host pypi.python.org --user
这样pip将安装在~/.local/bin目录下面,需要自己将此目录设置至环境变量中。
新的问题在安装成功后通过pip安装其它的包一样会报上述的错误,如何处理?可以像上述追加 --trusted-host pypi.python.org
如安装virtualenv
#pip install virtualenv --trusted-host pypi.python.org
# virtualenv env
#source dev/bin/activate
即可看到效果
0 0
- CentOS 5.8_64 环境下面安装Pip 报ValueError: check_hostname requires server_hostname 解决办法
- centos 安装pip 报错
- centos无法安装pip解决办法
- CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
- 问题--pip安装软件出现下面的报错
- centos下面安装javaee环境tomcat
- centos下面安装php开发环境
- CentOs 6.3_64静默安装oracle11g_r2
- CentOs 6.3_64静默安装oracle11g_r2
- Centos pip安装mysqldb提示EnvironmentError: mysql_config not found解决办法
- 转载一个pip安装virtualenvwrapper报错的解决办法
- windows下面安装pip教程
- Windows下面安装pip教程
- Centos Linux Anaconda Python Pip安装、启动和环境配置
- centos安装NPM报错解决办法
- centos安装matplotlib报错的解决办法
- Centos安装pip
- CentOS安装python-pip
- Android ImageView圆角,绘制ImageView边框;Bitmap圆角
- js笔记
- 前三章总结
- C语言中offsetof(TYPE,MEMBER)宏的解释
- 软件开发与画图
- CentOS 5.8_64 环境下面安装Pip 报ValueError: check_hostname requires server_hostname 解决办法
- BZOJ 3550 ONTAK2010 Vacation 线性规划转费用流
- Android媒体应用下不能将两个U盘间文件复制
- POJ 2352 Stars(线段树单点更新)
- 部署在tomcat上的java web项目连接SQLservices
- 《Cocos2d-x实战 JS卷 Cocos2d-JS开发》上线了
- 2.数据挖掘的十大算法
- OpenWrt学习记录二固件编译和下载
- bzoj2132: 圈地计划 最小割