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

后端 未结 2 357
栀梦
栀梦 2021-01-21 12:41

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 
         


        
相关标签:
2条回答
  • 2021-01-21 13:24

    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
    
    0 讨论(0)
  • 2021-01-21 13:40

    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!

    0 讨论(0)
提交回复
热议问题