You don't specify what operating system you're on. It's been my experience that installing multiple Python versions alongside one another tends to just work. For example on Ubuntu it's simply a matter of installing both the 2.x and 3.x packages (using sudo apt-get install
or Ubuntu Software Centre):
aix@aix:~$ python2.6
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
aix@aix:~$ python3
Python 3.1.2 (release31-maint, Sep 17 2010, 20:27:33)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
I even have a third version (an EPD build) installed on the same box:
aix@aix:~$ python2.7
Enthought Python Distribution -- www.enthought.com
Version: 7.0-2 (64-bit)
Python 2.7.1 |EPD 7.0-2 (64-bit)| (r271:86832, Nov 29 2010, 13:51:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>