Use Python

To install or interact with packages providing system tools, tools for data analysis, or web applications written in Python, run the Python interpreter or Python-related commands.

Before you begin

  • Python is installed.
  • If you want to download and install third-party applications, install the python3-pip package. Warning

    Installing Python packages with pip as the root user places files in system locations. This can override RHEL libraries and might cause system instability or conflicts with supported packages. Red Hat does not support software installed by using pip at the system level. To avoid these issues, use pip within a virtual environment or install packages as a non-root user with the --user option.

Procedure

To run the Python 3.12 interpreter or related commands, use, for example, the following commands:
$ python3
$ python3 -m venv --help
$ python3 -m pip install <package>
$ pip3 install <package>