Python pip broken after OS X 10.8 upgrade

后端 未结 10 1496
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 19:19

Made the upgrade to Mac OS X 10.8 (Mountain Lion) and get now the following error when trying to call $ pip:

Traceback (most recent call last):
         


        
相关标签:
10条回答
  • 2020-12-12 20:11

    I changed the permissions for Python folder (from root to my user), and now everything work for me:

    sudo chown -R <your_user>:wheel /Library/Python/2.7/site-packages/
    

    Not recommended for machines with multiple users.

    0 讨论(0)
  • 2020-12-12 20:16

    This works for me

    rm -f /usr/local/bin/easy_install
    brew reinstall python
    pip install --upgrade setuptools
    pip install --upgrade pip
    
    0 讨论(0)
  • 2020-12-12 20:20

    Use easy_install to update your pip to the latest version:

    sudo easy_install -U pip

    Also make sure you have the lastest XCode installed (ver 4.4) with Command Line Tools.

    0 讨论(0)
  • 2020-12-12 20:22

    I fixed this by reinstalling python with homebrew: brew install python

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