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.
Tutorial on installing Python 3 in CentOS 7
1 - First, insert the following commands to enable CentOS 7 to install Python.
yum -y update
yum -y install yum-utils
yum -y groupinstall development
2 - To install Python, IUS needs to be installed with the following code.
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
3 - After installing IUS, now you need to enter the following command to install Python 3.
yum -y install python36u
4 - This way Python 3 is installed and you can enter the following command to see the installed version.
Manage Python packages with pip
To manage python, you need to have pip installed. To do so, enter the followeing code.
yum -y install python36u-pip
Now you can install the packages you want with the below structure.
pip3.6 install package_name
Do not forget that in order for the Python packages to work properly, you will need to install Python36u Developer package vis IUS. You can do so using the following code.
yum -y install python36u-devel
Once these steps are completed, Python should be installed on your CentOS system.