Install different version of Python in linux

This is how I install python 2.7.13 without erasing the current version of python that exists inside the OS. It is an alternative install.

$ wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz
$ tar xvf Python-2.7.13.tar.xz
$ cd Python-2.7.13
$ ./configure
$ make
$ sudo make altinstall

Leave a Reply

Your email address will not be published. Required fields are marked *