Installing python and all its stuff maybe a bit confusing if you’re installing it using Macports (MacPorts - The MacOS package manager). By default, Macports comes with many python ports, e.g., python24, python27, python34. Each of them is a separate version of python (2.4, 2.7, 3.4,…). It provides the users the ability to install and maintain multiple version of python at the same time.
To browse all versions of python provided by Macports, use this command
$ port search python
python26 @2.6.9 (lang)
An interpreted, object-oriented programming language
python27 @2.7.6 (lang)
An interpreted, object-oriented programming languageTo install a specific version of python
$ port install python24 python27When you install python through Macports, it will auto install the python_select port. This is a tool for switching among python versions. To view all the the installed python versions, execute this one
Read more

