Installing Python 3.8 standard package on RHEL 7

Cloudera Manager agents and Hue require Python 3.8. You must install Python 3.8.12 or higher on all cluster hosts before installing Cloudera Manager and adding services to your cluster. Follow the instructions in this topic to install the standard Python 3.8 packages in a standard location on RHEL 7.

Python 3 is distributed in versions 3.6, 3.8, and 3.9, provided by the python36, python38, and python39 modules on RHEL 7. CDP requires that you install Python version 3.8 on your cluster hosts.

  1. SSH into the host system as a root user.
  2. Run the following command to enable the additional repositories:
    subscription-manager repos --enable rhel-server-rhscl-7-rpms
  3. Install Python 3.8 by running the following command:
    sudo yum install rh-python38
  4. Install the psycopg2-binary package by running the following command:
    scl enable rh-python38 -- pip install --upgrade pip
    scl enable rh-python38 -- pip install psycopg2-binary
  5. Verify the Python version as follows:
    /opt/rh/rh-python38/root/usr/bin/python3.8 --version