每当我尝试从命令行运行kivy,或尝试通过他们的python脚本安装easy_install之类的东西时,我得到:
ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so, 2): Symbol not found: __PyInt_AsInt
Referenced from: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
Expected in: flat namespace
in /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
当我尝试从github安装kivy的dev版本时,它首先发生了。当我尝试为pip安装setuptools时也会发生这种情况。有没有办法重新安装python,似乎我的发行版已被破坏。