Python 2.7 on OS X: TypeError: 'frozenset' object is not callable on each command

坚强是说给别人听的谎言 提交于 2019-12-02 00:23:03

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!

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!