Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with easy_install-2.7

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!

I seem to get a redirect

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

Any ideas ?

like image 611
felix001 Avatar asked Nov 12 '13 10:11

felix001


People also ask

Is easy_install deprecated?

easy_install, now deprecated, was released in 2004 as part of setuptools. It was notable at the time for installing packages from PyPI using requirement specifiers, and automatically installing dependencies.

Does pip use setuptools?

Even for projects that do choose to use distutils , when pip installs such projects directly from source (rather than installing from a prebuilt wheel file), it will actually build your project using setuptools instead.

What does easy_install do?

It lets you automatically download, build, install, and manage Python packages. Easy_Install looks in the Python Package Index (PyPI) for the desired packages and uses the metadata there to download and install the package and its dependencies. It is also hosted itself on the PyPI.

Is pip for python2?

PIP is automatically installed with Python 2.7.9+ and Python 3.4+ and it comes with the virtualenv and pyvenv virtual environments. Before you install PIP on Windows, check if PIP is already installed.


1 Answers

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

like image 185
Ignacio Vazquez-Abrams Avatar answered Oct 12 '22 22:10

Ignacio Vazquez-Abrams