How to Install Python on CentOS 7

r00t October 8, 2017

Install Python on CentOS 7

In this tutorial we’ll learn how to install Python on CentOS 7. 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 CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Python on CentOS 7

Step 1. First, ensure your system is fully up-to-date by running the following:

yum -y update
yum install gcc

Step 2. Installing Python.

First, download Python using following command and you can also download latest version from python official site:


Extract archive and compile:

tar xzf Python-3.6.3.tgz
cd Python-3.6.3
make altinstall

Be patient because this may take a while. When the installation is complete, verify the installation with the command:

python3.6 -V

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

The Tags:

Leave a Comment

Comments are closed.