Installing Python 3.9 standard package on RHEL 9

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

Python 3.9 is the default Python implementation provided by RHEL 9 and is usually installed by default. Perform this task to install or re-install it manually.

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