easy_install-2.7的问题 [英] Issue with easy_install-2.7

查看:46
本文介绍了easy_install-2.7的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装easy_install并尝试使用它来安装python软件包后,它会失败.

After installing easy_install and trying to use it to then install a python package it fails.

[root@server]# easy_install-2.7 pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Download error on http://pypi.python.org/simple/pip/: unknown url type: https -- Some packages may not be found!

我似乎获得了重定向

curl -IL http://pypi.python.org/simple/pip/
HTTP/1.1 301 Moved Permanently
Retry-After: 0
Location: https://pypi.python.org/simple/pip/
Content-Length: 0
Accept-Ranges: bytes
Date: Tue, 12 Nov 2013 10:28:40 GMT
Age: 0
Connection: close

HTTP/1.1 200 OK
Date: Tue, 12 Nov 2013 10:28:40 GMT
Content-Type: text/html; charset=utf-8
X-PYPI-LAST-SERIAL: 835141
Cache-Control: max-age=86400, public
Strict-Transport-Security: max-age=31536000
Content-Length: 3933
Accept-Ranges: bytes
Age: 78434
Vary: Accept-Encoding

有什么想法吗?

推荐答案

安装OpenSSL开发包,然后重新安装Python 2.7,以启用SSL(并因此启用HTTPS)支持.

Install the OpenSSL development package and then reinstall Python 2.7, in order to enable SSL (and hence HTTPS) support.

这篇关于easy_install-2.7的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆