我已经通过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应该是的。 /放在 –