To download the latest version of Python, open https://www.python.org/downloads/ and click on “Download Python-2.7.10” as shown in below image.
If you open the tar file from the archive manager you can see the files that were downloaded.
Now extract all the files under the same folder or you can choose a specific directory. Click on Extract button as shown below.
Wait till the file get extracted.
Now from the above image we can we can see that file is successfully extracted.
Now open terminal and locate the extracted installation files.
sloba@sloba-VirtualBox ~ $ ls Desktop Documents Downloads Music Pictures Public Templates Videos sloba@sloba-VirtualBox ~ $ cd Downloads/ sloba@sloba-VirtualBox ~/Downloads $ ls Python-2.7.10 Python-2.7.10.tar.xz sloba@sloba-VirtualBox ~/Downloads $ cd Python-2.7.10/ sloba@sloba-VirtualBox ~/Downloads/Python-2.7.10 $ ls aclocal.m4 Demo Mac PC README build Doc Makefile PCbuild RISCOS config.guess Grammar Makefile.pre pybuilddir.txt setup.py config.log Include Makefile.pre.in pyconfig.h Tools config.status install-sh Misc pyconfig.h.in config.sub Lib Modules python configure libpython2.7.a Objects Python configure.ac LICENSE Parser python-gdb.py sloba@sloba-VirtualBox ~/Downloads/Python-2.7.10 $
Now execute “./configure” on the same path to configure. Wait until it is completed. The execution should be completed without any errors.
This will take some time to complete. Wait till this get completed.
Now the installation is completed. Now let’s check the Python verison to see if the latest version is installed or not by typing “python” or “python –version” as shown in below image.
Python-2.7.10 is successfully installed on Linux Mint OS and ready to use.