You do not indicate which operating system you are on. In my experience, installing multiple versions of Python next to each other tends to work. For example, on Ubuntu, it is just a matter of installing 2.x and 3.x packages (using sudo apt-get install or Ubuntu Software Center):
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 (EPD build) installed in the same field:
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. >>>
NPE Jul 18 2018-11-18T00: 00Z
source share