Installing Python 3

Certain CDP services such as Cloudera Manager and Hue use Python 3.x. Installing Python 3.x is mandatory to deploy CDP Private Cloud Base. Review the supported operating systems (OS) and use the corresponding instructions to install the recommended Python version.

Cloudera Manager 7.13.1 is supported only on the following operating systems. The following table lists the supported operating systems, the Python version that is distributed with those operating systems, and the Python 3 versions required for deploying CDP:
Operating system Python version distributed with the OS Python version required for deploying CDP Installation required?
RHEL 8.10 Python 3.6 Python 3.8 or Python 3.9 Yes
RHEL 8.8 Python 3.6 Python 3.8 or Python 3.9 Yes
RHEL 8.8 FIPS Python 3.6 Python 3.8 or Python 3.9 Yes
RHEL 9.2 Python 3.9 Python 3.9 Yes
RHEL 9.1 Python 3.9 Python 3.9 Yes
SLES 15 SP4 Python 3.6 Python 3.10 Yes
SLES 15 SP5 Python 3.11 Python 3.10 Yes
Oracle 8.8 UEK Python 3.6 Python 3.8 Yes
Ubuntu 20.04 Python 3.8 Python 3.8 No
Ubuntu 22.04 Python 3.10 Python 3.10 No

Cloudera Manager 7.13.1 does not work with Python 2.7. While using Cloudera Manager 7.13.1 with Cloudera Runtime 7.1.8 or 7.1.9 version, you may remove all Python 2 versions from the operating system, only when the operating system allows you to remove the Python 2 version.

If you are running Cloudera Runtime 7.1.7 SP3 or below versions with Cloudera Manager 7.13.1, then Python 2.7 is still required for the Cloudera Runtime components. In this scenario, you must install both Python 2.7 (for Cloudera Runtime components) and Python 3 (for Cloudera Manager 7.13.1).

Difference between standard and custom Python packages

The term standard Python package in Cloudera documentation refers to the Python package that is distributed with the OS, or an unmodified Python binary that is compiled from the source. If you have made modifications or customizations to the Python source code and then compiled the binaries into a package, then that is referred to as the custom Python package.

Deployment options for Python 3

You can install Python in a standard or custom location on your filesystem. In Cloudera documentation, the term standard location refers to one of the following default locations where Python is installed, depending on the package:
  • /usr/bin
  • /usr/local/python38/bin
  • /usr/local/bin
  • /opt/rh/rh-python38/root/usr/bin

A custom location is any location on the filesystem other than these standard locations.

Typically, all standard packages that are distributed with an OS are installed in the standard locations.

If the supported Python 3 version (standard package) is distributed with the OS, you can use the OS’s package manager to install Python, which gets installed in the standard location.