Whenever i try to use pip I get an error. For exampple:
$ sudo pip install gevent-websocket
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2675, in <module>
parse_requirements(__requires__), Environment()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==0.8.1
I feel tempted to change the value of into pip==0.8.2.. but I dont feel dealing with the consequences of 'hacking' up my installation... I'm running python 2.7 and pip is at version 0.8.2.
I was facing the similar problem in OSx. My stacktrace was saying
Then I did the following
This solved the problem for me. Hope someone will find this useful.
I had this problem because I installed python/pip with a weird
~/.pydistutils.cfg
that I didn't remember writing. Deleted it, reinstalled (withpybrew
), and everything was fine.In my case (sam problem, but other packages) there was no version dependency. A sequence of pip uninstall and pip insstall did help.
I replaced 0.8.1 in 0.8.2 in /usr/local/bin/pip and everything worked again.
I installed pip through easy_install which probably caused me this headache. I think this is how you should do it nowadays..
I was able to resolve this like so:
I'm running w/ the following stuff (as of Jan 2, 2015):
Try re-installing with the get-pip script:
This is sourced from the pip Github page, and worked for me.