I have this error on each my command with Python:
➜ /tmp sudo easy_install pip Traceback (most recent call last): File \"/usr/bin/easy_install-2.7\", line 11, in
Removal of this package have helped me:
sudo rm -rf /Library/Python/2.7/site-packages/hashlib-20081119-py2.7-macosx-10.11-intel.egg
I had this problem too, but I also needed the hashlib package to be installed (On Debian).
The best solution that I found (Better then to install hashlib with easy_install) was from here: https://askubuntu.com/questions/770262/python-hashlib-fails-to-install-pip
And it is:
"The quick and dirty fix is to remove the /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so file"
After this it is possible to install hashlib with pip!