Why use pip over easy_install? [closed]

Question!

A tweet reads:

Don't use easy_install, unless you like stabbing yourself in the face. Use pip.

Why use pip over easy_install? Doesn't the fault lie with PyPI and package authors mostly? If an author uploads crap source tarball (eg: missing files, no setup.py) to PyPI, then both pip and easy_install will fail. Other than cosmetic differences, why do Python people (like in the above tweet) seem to strongly favor pip over easy_install?

(Let's assume that we're talking about easy_install from the Distribute package, that is maintained by the community)



Answers

I found another case where pip installs an older version. For the package, deform, pip installs deform==0.9.9, but easy_install installs the newer deform==2.0a2



Because .. the following command will install the latest version of a module and its dependencies from the Python Packaging Index. You don't need to do anything else:

python -m pip install SomePackage


Just met one special case that I had to use easy_install instead of pip, or I have to pull the source codes directly.

For the package GitPython, the version in pip is too old, which is 0.1.7, while the one from easy_install is the latest which is 0.3.2.rc1.

I'm using Python 2.7.8. I'm not sure about the underlay mechanism of easy_install and pip, but at least the versions of some packages may be different from each other, and sometimes easy_install is the one with newer version.

easy_install GitPython
By : Landys


This video can help you solving your question :)
By: admin