Installing Python 3.12 standard package on supported operating systems

Learn how to install Python 3.12 package dependencies and backend database drivers on Cloudera Manager hosts. Install Python 3.12 from your OS package repository before upgrading to Cloudera Manager 7.13.2 SP1 (7.13.2.10000).

Verify system permissions and host installation path constraints before proceeding with Python 3.12 deployment.

Before installing Python 3.12, verify the following prerequisites:
  • You have root user access or sudo privileges on all target host systems.

  • Python 3.12 or Python 3.11 is installed on all hosts running the Cloudera Manager 7.13.2 SP1 Agent.

Install Python 3.12 packages using your operating system package manager and install the PostgreSQL database adapter if using Hue.

  1. SSH into the host system as a root user.
  2. Install Python 3.12 by running the appropriate command for your OS:
    RHEL 8 (x86 and ARM64) / Oracle Linux 8 / Rocky Linux 8:
    yum install python3.12
    RHEL 9 / Oracle Linux 9 / Rocky Linux 9:
    yum install python312
    SLES 15 SP5 / SLES 15 SP6:
    zypper install python312
    Ubuntu 22.04 (Installation from the deadsnakes PPA):
    add-apt-repository ppa:deadsnakes/ppa -y
    apt update
    apt install python3.12
    Ubuntu 24.04

    Python 3.12 comes pre-installed by default. No package installation is required.

  3. Verify that the Python 3.12 binary is available on the system PATH:
    python3.12 --version
Install PostgreSQL driver for Hue (Optional)

If you use PostgreSQL as the backend database for Hue, install the psycopg2-binary package after installing Python 3.12. For step-by-step instructions on installing and configuring the psycopg2-binary package for PostgreSQL, see Installing the psycopg2 Python package for PostgreSQL database.