How to Install Python on Ubuntu 18.04 Bionic Beaver

Install Python on Ubuntu 18.04

In this article, we will have explained the necessary steps to install and configure Python on Ubuntu 18.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

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 a versatile programming language, you can use it to do almost anything you want, write small scripts, build games, develop websites and many more.

Install Python on Ubuntu

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

Step 2. Install Python on Ubuntu.

  • Installing Python 3.7 on Ubuntu with apt:

Confirm the installation and check the version of Python by entering the following command:

  • Installing Python 3.7 on Ubuntu from Source:

Now, download the latest releases source code from the Python download page:

Start the Python build process using make:

Confirm installation and check version of Python by entering follwing command:

That’s all you need to do to install Python on Ubuntu 18.04. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.