CentOS 5.8_64 环境下面安装Pip 报ValueError: check_hostname requires server_hostname 解决办法
2015-03-26 20:00
1986 查看
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
即可看到效果
在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
即可看到效果
相关文章推荐
- centOS安装ganglia报错 You don't have permission to access /ganglia on this server解决办法
- wampserver环境下帝国备份王安装进入不了,解决办法!
- centos下解决ssh hostname command 环境变量问题
- CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
- 关于CentOS安装了KDE桌面环境后系统没有声音的解决办法
- ubuntu安装openssh-server 报依赖错误的解决过程 ubuntu自带的有openssh-client,所以可以通过 1 ssh username@host 来远程连接linux 可
- CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
- CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
- centos7.3下安装pip时失败解决办法
- 记录使用vmware workstation11安装CentOS-6.6-x86_64-minimal.iso过程中遇到的问题及解决办法
- VirtualBox 安装 ubuntu 出现This kernel requires an X86-64 CPU,but only detected an i686 CPU错误的解决办法
- kickstart自动化安装时,画面停在Determining host name and domain时解决办法
- python基础===Windows环境下使用pip install 安装出错"Cannot unpack file"解决办法
- Centos pip安装mysqldb提示EnvironmentError: mysql_config not found解决办法
- hadoop集群环境安装过程及centos上网的解决办法
- 解决CentOS安装中"Determining hostname and domain”长时间等待问题
- python2.7,Ubuntu14.04环境下pip安装插件,cffi插件出现一下错误解决办法。
- 在CENTOS环境安装ASTERISK+FREEPBX常见问题以及解决办法
- kickstart自动化安装时,画面停在Determining host name and domain时解决办法
- 在CENTOS环境安装ASTERISK+FREEPBX常见问题以及解决办法