Install the latest Python in Ubuntu – How to install Python 3.7 (using PPA) in Ubuntu Linux. Terminal commands to install Python 3.7.x using PPA in Ubuntu and Linux Mint and other Ubuntu Derivatives.
Install Python 3.7
Run the following commands in terminal to install Python 3.7 using PPA in Ubuntu and Linux Mint and other Ubuntu Derivatives.
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7
Install Python 3.6
Run the following commands in terminal to install Python 3.6 using PPA in Ubuntu and Linux Mint and other Ubuntu Derivatives.
If you want to install Python 3.6 then use this command(Ubuntu 16.04/14.04/Linux Mint 18/17):
Terminal Commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
Similarly, to install Python 3.5 replace the version in the last line as “sudo apt-get install python3.5”. You can install Python 3.4 and Python 3.3 using the same method.
Once installed, please restart the system.