我已經通過MacPorts安裝了Python。根據this的問題,/ opt/local/bin中的文件應該運行「正確」的Python版本。然而,所有這些文件是符號鏈接:Snow Leopard上的MacPorts:Python安裝似乎成功,但不安裝非系統Python
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/
從該文件夾中(不使用符號連接)直接運行它們運行的Python蘋果打造!
Python 2.6.6 (r266:84292, Jan 6 2011, 13:25:25)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
爲了比較,運行在/ usr/bin中/ Python的顯示略有不同的版本:
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
他們都是蘋果建立!我如何安裝正確的版本?
它們不是兩個蘋果都在構建。他們都是用蘋果公司的GCC構建的。 –
改爲嘗試'自制'。這是macports應該是的。 /放在 –