How To Install Python On CentOS



Python is an elevated-level, active, general-purpose language. It was expanded by Guido Van Rossum in 1991. Python's syntax authorizes developers to utilize smaller quantity lines of code than any additional programming language. It concentrates on the code readability of the list. Python 2.7 is installed by default on CentOS except we could install other versions such as Python 3.5 and 3.6. In the respective tutorial, we are training and coaching how to install Python 3.6.3 on CentOS.


  • CentOS
  • Log in as an administrator on the terminal
  • Yum must be configured on the system.


The installation incorporates subsequent steps.

  • Install IUS Community Repository

Inline to install Python 3.6 on CentOS, we require initially to install the IUS community repository, which delivers extra packages for Enterprise Linux. Perform the subsequent command to install the IUS community repository.

$ sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm

CentOS How to Install Python 3 on CentOS

  • Install Python 3

Perform the subsequent command to install python 3.6 on CentOS.

$ sudo yum install python36u

CentOS How to Install Python 3 on CentOS 1

  • Verify Python

To verify whether we have installed an accurate version of python, users just require to type python3.6 -V on the terminal. The command will demonstrate the version installed which would be is 3.6.4 in my case.

CentOS How to Install Python 3 on CentOS 2

  • Working on Python's script mode

Users just need to input the command python3.6 on the terminal to go into Python's script mode. We can carry out the python statements on this case. Since Python 2 is by default fitted on CentOS, therefore typing python on the terminal obtains us to the python2 shell, and consequently, we have to input python3.6 to effort on the needed python shell.

CentOS How to Install Python 3 on CentOS 3

Perform the suitable python reports, which get construed and explain the desired product on the terminal as exposed below.

CentOS How to Install Python 3 on CentOS 4

For this reason, we have installed and obtain begun with Python 3.

Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.