This quick tutorial is for those who want to install the latest Python 3.7.2 in Ubuntu 18.04 LTS, Linux Mint 19.x, and Ubuntu 18.10.
(Last Updated On: October 2, 2018) In this post, we will install Python 3.7.0 on Ubuntu 18.04 / Debian 9.5. This is the latest version of the Python Programming Language. Python is one of the most popular programming languages in the world. With its simple and easy to learn syntax Python is a great choice for beginners and experienced developers.Python is quite versatile programming language, can be used for many purposes like building games, developing websites. This tutorial describes how to install Python 3.7 the latest version of Python on Ubuntu 18.04.
Ubuntu 18.04 comes with Python 2.7 and Python 3.6 out-of-the-box, and later includes Python 3.7.1 in its updates (universe) repository.
For the updated Python 3.7.2, you can do following steps to use the ToolChain PPA packages.
1. Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for “Terminal” from app launcher. When it opens, run command to add the ToolChain PPA:
Type user password (no visual feedback) when it asks and hit Enter to continue.
2. Then run command to install Python3.7:
For Linux Mint 19.x, run command sudo apt update
to check updates first.
3. As the PPA contains other updates toolchain packages, e.g., gcc-7.4.0, gcc-8.2.0, and python-3.6.8, you may remove the PPA afterwards via Software & Updates -> Other Software tab.
4. To make python3
use the new installed python 3.7.2 instead of the default 3.6.7, run commands to add python3.7 as choice:
![Install Python 3.7 Ubuntu Install Python 3.7 Ubuntu](https://jcutrer.com/wp-content/uploads/2018/12/apt-install-python37.png)
Then switch between the two versions via command:
That’s it. Enjoy!