• Recent blogs

    How to Install Python3 on RHEL/Centos 7

    How to Install Python3 on RHEL/Centos 7

    How to Install Python3 on RHEL/Centos 7

    We will discuss how to install Python3 on RHEL/Centos 7. Python is at the core of many popular websites and programs – YouTube, Instagram, and even Yum on CentOS, to name a few. Python is a general-purpose object-oriented programming language designed to be used as a software solution. The pre-installed version of Python found on CentOS 7 is python2.7. In order to have the latest version of Python, the user will have to install it manually. We'll be installing Python version 3.6.4 on our CentOS 7 machine. 

    Install Python 3.6.4 on CentOS 7 From a Repository

    We will add a repository that has the pre-compiled version ready for us to install.

    Add the repository 

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

    Update Yum

    yum update

    Check Repository

    yum repolist

    [root@monitor /]# yum repolist
    Determining fastest mirrors
     * epel: epel.mirror.constant.com
     * epel-debuginfo: epel.mirror.constant.com
    repo id                                               repo name                                                               status
    !docker-ce-stable/x86_64                              Docker CE Stable - x86_64                                                   63
    !elasticsearch-6.x                                    Elasticsearch repository for 6.x packages                                  575
    !epel/x86_64                                          Extra Packages for Enterprise Linux 7 - x86_64                          13,490
    !epel-debuginfo/x86_64                                Extra Packages for Enterprise Linux 7 - x86_64 - Debug                   2,797
    !ius/x86_64                                           IUS for Enterprise Linux 7 - x86_64                                        714

    Download and install Python.

    This will not only install Python – but it will also install pip to help you with installing add-ons. python36-setuptools will help you Easily build and distribute Python packages.

    yum install -y python36u python36u-libs python36u-devel python36u-pip python36-setuptools

    Check Python

    [root@monitor /]# python3.6 -V
    Python 3.6.7
    [root@monitor /]#

    No comments