By default, MacPorts installs user programs (or links to them) in /opt/local/bin . The MacPorts select_python selects which python instance is associated with /opt/local/bin/python . It does not (and should not) affect what Apple installs in /usr/bin , where the Apple-supplied python and python2.x commands are located.
To invoke MacPorts python2.5, you need to either ensure that /opt/local/bin precedes /usr/bin in your $PATH shell (you can do this by changing your .bash_profile or other shell initialization script) or you can just call desired python with an absolute reference to the path:
$ /usr/bin/python your-program.py
Use the default Apple python.
$ /opt/local/bin/python your-program.py
to use the version selected with python_select , or:
$ /opt/local/bin/python2.5 your-program.py
to explicitly choose MacPorts 2.5.
EDIT:
To change the PATH search to use MacPorts, add this line to .bash_profile :
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Ned deily
source share