Easy_install and Pip doesn't work
Question: Easy_install and Pip doesn't work anymore on python 2.7, when I try to do:

    
    
    sudo easy_install pip
    

I get:

    
    
    Traceback (most recent call last):
      File "/usr/bin/easy_install", line 5, in <module>
        from pkg_resources import load_entry_point
      File "/usr/bin/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 2713, in <module>
        parse_requirements(__requires__), Environment()
      File "/usr/bin/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 584, in resolve
        raise DistributionNotFound(req)
    pkg_resources.DistributionNotFound: distribute==0.6.15
    

And when I try:

    
    
    sudo pip install [package]
    

I get:

    
    
    Traceback (most recent call last):
      File "/usr/bin/pip", line 5, in <module>
        from pkg_resources import load_entry_point
      File "/usr/bin/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 2713, in <module>
        parse_requirements(__requires__), Environment()
      File "/usr/bin/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 584, in resolve
        raise DistributionNotFound(req)
    pkg_resources.DistributionNotFound: pip==0.8.2
    

I've already install both of them (and yes, first deleted them), but no
result...

Thanks!

[(I tried already this
post)](http://stackoverflow.com/questions/5585473/upgraded-python-on-
snowleopard-using-homebrew-now-pip-and-easy-install-dont-work)


Answer: I had this issue where python's distribute package wasn't installed for some
reason. After following the instructions on [python-
distribute](https://web.archive.org/web/20100309145033/http://guide.python-
distribute.org/installation.html), i got it working.

install the distribute package as follows:

    
    
    $ wget https://web.archive.org/web/20100225231201/http://python-distribute.org/distribute_setup.py
    $ python distribute_setup.py
    

**EDIT:~~<http://python-distribute.org/distribute_setup.py>~~ no longer
works:**

hopefully this will resolve your problem with running

    
    
    $ sudo easy_install
    

Happy Coding!

