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

后端 未结 2 356
栀梦
栀梦 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: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!

提交回复
热议问题