What did Apple do to the Python framework?

后端 未结 3 1056
自闭症患者
自闭症患者 2021-01-04 14:01

[tl;dr? see bottom]

Python on OS X has always been somewhat of an abomination in that it\'s split up and spread out all across the system. Some in /us

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 14:15

    I have encountered similar problems in the past. Space_C0wb0y's suggestion works for me, and using python_select I can switch between "default" versions of python. This also de-couples me from XCode. I've installed versions of 2.6 and 2.7 using MacPorts, which by default places the distribution in locations such as /opt/local/Library/Frameworks/Python.framework/Versions/2.7. It is the only way I have managed to have consistent installations, including 3rd party modules.

提交回复
热议问题