Install Python3 on CentOS

Related: For HPC, we typically load Python 3 with modules

CentOS is the free open-source version of Red Hat Linux, and for those needing stable EPEL packages, Python 3 is available. More typically one might use Anaconda Linux, but RHEL/CentOS users sometimes work in high-stakes enterprise environments where stability is demanded.

CentOS Python3 install

Here are three distinct ways to install Python 3.6 in CentOS.


This “stable” way to install Python 3.6 on CentOS comes from IUS, which is RHEL-derived.

  1. add IUS

    yum install
    yum update
  2. Install Python 3.6 and pip

    yum install python36u python36u-pip

Thanks to .whl binary wheel packaging, many packages such as Numpy can be quickly installed via pip without compilation.

Anaconda Python

Anaconda Python (and it’s mini-install, Miniconda) are a popular cross-platform Python distribution. Just like on other Linux platforms, I install via

  1. Download Miniconda
  2. bash Miniconda3*.sh

Intel Python

Intel Python is a conda channel, highly optimized for Intel CPUs.