Python pip broken after OS X 10.8 upgrade

后端 未结 10 1509
没有蜡笔的小新
没有蜡笔的小新 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:00

    I had a similar error except that sudo pip did not work either. I am using a "brew" installation of python (which is symlinked to /usr/local/bin) and found that the problem was that the shebangs in the pip and easy_install files were hardcoded to #!/usr/bin/python instead of #!/usr/local/bin/python, and so was using the system python version instead of the brew version.

    Cheers, Tom

提交回复
热议问题