List of content you will read in this article:
What is python?
Python is a general purpose, high-level, object-oriented script. It is open source and was developed in 1991 by Von Hansen in Holland.
The philosophy of its creation emphasizes the two main goals of readability of the written + shortcomings and the relative efficiency of the program. The key words of the language are minimal and it offers a vast variety of libraries for the user to choose from.
Unlike some other common programming languages, where code blocks are defined in the parenthesis, Python uses the character spacing and forwarding of the program to specify blocks of code. This means that there are a number of identical spacing characters in the beginning of each block's lines, and this number increases in the inner code blocks. This way blocks of code are automatically organized.
Please note: all the commands written below must be entered with root access.
Install Python 3 on Ubuntu 18.04
1- First, enter the following command to update Ubuntu repository(How to connect linux server).
2- Now enter the following command to download and install Python 3.
apt install python3-minimal
3- After installing, you can enter the following command to see the installed version of Python.
We will also give a brief tutorial on how to install Python 2 on Ubuntu 18.04
1- First, type the following command to update the Ubuntu 18 repository.
2- Then type the following command to start Python 2 download and install.
apt install python-minimal
Now, if you are considering installing Python modules, you can use the commands below.
To install, you must first find the module using the following command.
apt search MODULE-NAME
After finding the full name of the module, enter the following command to install the module.
apt install MODULE-PACKAGE-NAME
Please note: instead of MODULE-NAME, you must replace the name of the module with its full name or several initial letters, and MODULE-PACKAGE-NAME should be replaced with the full name of the module that you specified in the previous command.
Also here is complete guide to install python in centos VPS.