Collapse

Announcement

Collapse
No announcement yet.

How to install Python3.6 on CentOS ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to install Python3.6 on CentOS ?

    Please guide me how to install Python3.6 on CentOS server ? Thanks.

  • #2
    You can try the following steps to install python36 version on your CentOS server.

    1) Preparing the System to install the python36.

    First make sure that yum is up to date by running this command:

    ```
    yum -y update
    ```

    Next, you will need to install yum-utils, a collection of utilities and plugins that extend and supplement yum:

    ```
    yum -y install yum-utils
    ```

    then, install CentOS Development Tools, which are used to allow you to build and compile software from source code:

    ```
    yum -y groupinstall development
    ```

    2)Installing and Setting Up Python 36


    You need to install the most current stable release of Python 3, to do this we will need to install IUS, which stands for Inline with Upstream Stable. A community project, IUS provides RPM packages for some newer versions of select software.

    You can install IUS using yum:

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

    Once IUS installation is finished, you can install the latest version of Python using the following command:

    ```
    yum -y install python36u
    ```

    When the installation process of Python is complete, you can verify it using the below python3.6 command:

    ```
    [root@testuser ~]# python3.6 -V
    Python 3.6.3
    ```


    Here you can see that the version of Python 3.6 successfully installed on the server.

    Comment

    Working...
    X