TheXed Asked: 2011-04-30 08:58:08 +0800 CST2011-04-30 08:58:08 +0800 CST 2011-04-30 08:58:08 +0800 CST How would one install a side by side installation of Python 2.x, and Python 3.x 772 I think the title says it all. python 2 Answers Voted Best Answer Mike Axiak 2011-04-30T09:58:20+08:002011-04-30T09:58:20+08:00 Python 3 is available from the repositories and can be installed side by side with Python 2: sudo apt-get install python3 python You can use the -V switch to find out the minor version numbers: $ python3 -V Python 3.1.2 $ python -V python 2.6.6 Alexander Stohr 2019-05-07T05:22:22+08:002019-05-07T05:22:22+08:00 comment: please note that python 2 and 3 will use different output channels for their prints whilst the returned code will be zero in case of success. command=python2 --version rc=0 stderr=Python 2.7.12 . command=python3 --version rc=0 stdout=Python 3.5.2
Python 3 is available from the repositories and can be installed side by side with Python 2:
You can use the
-V
switch to find out the minor version numbers:comment: please note that python 2 and 3 will use different output channels for their prints whilst the returned code will be zero in case of success.
.