MacPorts on Snow Leopard: Python install seems to succeed but doesn't install a non-system Python

Posted by thebossman on Stack Overflow See other posts from Stack Overflow or by thebossman
Published on 2011-01-07T07:51:29Z Indexed on 2011/01/07 7:53 UTC
Read the original article Hit count: 412

Filed under:
|
|
|

I've installed Python via MacPorts. According to this question, the files in /opt/local/bin should run the "correct" Python version. However, all those files are symlinks to:

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ 

Running them directly from that folder (using no symlinks) runs an Apple build of 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.
>>> 

For comparison, running /usr/bin/python shows a slightly different version:

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.
>>>

They're both Apple builds! How do I install the correct version?

© Stack Overflow or respective owner

Related posts about python

Related posts about osx