Python is one of the famous programming languages & it has been gaining more popularity especially since the advent of new technologies like Artificial Intelligence, Internet of things, etc. It is now being adopted in almost all industries, all across the globe. What is makes it more popular is the fact that it is one of the easiest programming languages to learn & adapt to. 

If thinking from a System Administration point of view, it is used in scripting & for tools puppet, chef, etc. Thus making it one of the most sought-after skills for a System Administrator. In this tutorial, we will learn to install Python 3.6, which is the latest version of python on Centos 7 machine.

So let’s get going ........

( Also Read: Complete "Beginners to PRO" guide for GIT Commands )


As Python 3.6 is still not available via default yum repositories, so there are two ways by which we can install Python 3.6 on Centos 7,

1- By compiling from source method

Before we can compile the source packages for python 3.6, we need to make sure that we have all the dependencies installed on our system. To install the required packages, open the terminal & execute

$ yum groupinstall "development"

& also install

$ yum install zlib-devel

Once the packages have been installed, we will now download the python source package,

$ wget

Now extract the package,

$ tar -xJf Python-3.6.0.tar.xz

Next, we will compile the source packages & install them,

$ cd Python-3.6.0

$ ./configure

$ make

$ make install

After the installation completes, you will have Python 3.6 installed on your Centos 7 machine.


2- By using IUS (Inline with upstream stable) method

Now the second method to install python 3.6 is somewhat not that popular, & is known to very few but it will get the work done. In this method, we will first install IUS. IUS or Inline with Upstream Stable provides rpm for some newer versions of software including python 3.6. To install IUS on your Centos machine, execute

$ yum -y install

Once the IUS installation has been completed, we can use yum to install python on our systems,

$ yum install python36u

This will install python on the system.

Now to launch python on your machine after the installation, open the terminal & type

$ python3

That’s it guys, we are planning to start a learning series for python & will update on that soon. For now please do leave your valuable feedback & queries in the comment box below.

We are giving you exclusive deals to try Linux Servers for free with 100$ credit, check these links to claim your 100$,

DigitalOcean - 100$ free credit & Linode - 100$ free credit

Check some Exclusive Deals, HERE.

Also, check out DevOps Book You should read section.