How to Install Python on Ubuntu 18.04

r00t August 7, 2018

Install Python on Ubuntu 18.04

In this tutorial we are going to learn how to install Python on Ubuntu 18.04. We will also install and configure its prerequisites. Python are of the most popular new generation programming languages software dynamically typed scripting languages ​​with strong support for object-oriented software architecture and implementation is very different from the kings of programming languages ​​such as Java and C, none of the new languages ​​have a strict syntax and hierarchy and instead focus on helping developers to “do something quickly,” instead of having to worry about missing a semicolon or closing parenthesis.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 18.04 Bionic Beaver  minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Python on Ubuntu 18.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing Python on Ubuntu 18.04 Bionic Beaver.

Now to install Python 3.6, run the following command:

sudo apt install python3-minimal

Check your Python version:

python3 -V

Many Python modules are already part of the Ubuntu repository. To search for Python modules enter:

apt search MODULE-NAME

To install any particular python module, first obtain the package name of the module you wish to install using the above command and then run the following linux command to install it:

apt install MODULE-PACKAGE-NAME

Congratulation’s! You have successfully install and configure Python on your Ubuntu 18.04 LTS server. Thanks for using this tutorial for installing Python programming language on Ubuntu system.

The Tags:

Leave a Comment

Comments are closed.