Installing Python 3.9 standard package on RHEL 8

Cloudera recommends to use Python 3.9 with Cloudera Manager and Hue. You must install Python 3.9.19 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.9 packages in a standard location on RHEL 8.

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

  1. SSH into the host system as a root user.
  2. Install Python 3.9 by running the following command:
    yum install python39
  3. Verify the Python version as follows:
    python3.9 --version
Install the psycopg2-binary package
Install the psycopg2-binary package after installing Python 3.9 for using PostgreSQL as a backend database for Hue.