Why is this happening
MacPorts installs binaries in /opt/local by default .
There is also preinstalled python on your Mac. When you just type python , it will launch a pre-installed version of python that is not affected by the MacPorts installation.
To find out which version will be executed when just type python, use
which python
To launch the Mac port version, use
/opt/local/bin/python2.5
Decision
If you want to always use the MacPorts binaries, you can change your path so that /opt/local/bin appears before /use/local/bin , etc.
/opt/local/bin etc. added to ~ / .tcshrc using MacPorts. Also be sure to look at ~ / .profile and ~ / .bash_profile, as they are by default on mac.
Port version selection
The first type of port select --list python to indicate the installed version, and then, for example, sudo port select --set python python27 to select 2.7. For more information, enter port help select .
vidstige
source share