Python 3.8 Application Stream is currently available with RHEL 8.2 beta. Since we support every new version of Python (3 years) that we release, we need to make sure that it's stable before bringing it to RHEL and the many hardware architectures it runs on. This is also important as customers expect technologies to be production grade. This table shows that over the years, we have officially supported more than one Python version simultaneously. You can download RHEL 8.2 beta from here. RHEL 8 was released with 2 versions of Python (2.7 and 3.6) because it's an important technology for us. We've used it ourselves for many years in building RHEL components and, among others in this industry, we had to rebuild it to 3.x (from 2.7).

FYI - new versions of Python and other components are released as Software Collections on RHEL 7, and as Application Streams on RHEL 8. The benefit of these is that the version of Python that's installed will have exactly the same packages and components for each system it's install it on. This simplifies things a lot (as you point out, it's complicated) and minimizes the "it works on my machine" issue.

Answer from Mike Guerette on Stack Overflow
🌐
Cloudera
docs.cloudera.com › cdp-private-cloud-base › 7.1.9 › installation › topics › cdpdc-cm-install-python-3-rhel8-standard-location.html
Installing Python 3.8 standard package on RHEL 8
July 19, 2024 - Cloudera Manager agents and Hue require Python 3.8. You must install Python 3.8.12 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.8 packages in a standard location on RHEL ...
🌐
Red Hat
developers.redhat.com › blog › install-python3-rhel
How to install multiple versions of Python on Red Hat Enterprise Linux | Red Hat Developer
February 27, 2024 - In addition, for installing the pip package installer, add on the -pip extension to the version of python being installed, for example: ... $ sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms $ yum group install "Development Tools"
Discussions

How to install Python 3.8.1 on RHEL 8? - Stack Overflow
This is really frustrating. I want to install the latest version of Python (at the time of this issue: Python 3.8.1) on RHEL 8, (RHEL being one of the most widely used distributions of Linux). I ... More on stackoverflow.com
🌐 stackoverflow.com
RHEL8 Python Version Management
Red Hat backports security fixes, so auditing software that naively only looks at package version numbers will often turn up false positives. More on reddit.com
🌐 r/linuxadmin
10
6
January 21, 2025
rhel - python cannot find python in rhel8 - Unix & Linux Stack Exchange
What specific syntax or configuration must be changed to get a RHEL8 vm to successfully run the simple python programs below? PROBLEM DEFINITION: A simple python 3 program uses the subprocess modu... More on unix.stackexchange.com
🌐 unix.stackexchange.com
July 28, 2022
fedora - How to install Python 3.8.1 on RHEL 8 UBI container with dnf? - Stack Overflow
How do I install and run Python 3.8.1 on Linux? Python.org does not offer a Linux binary for Python 3.8.1. I want to type: dnf -y install python or dnf -y install python38 and have it install Py... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Red Hat
developers.redhat.com › blog › 2018 › 11 › 14 › python-in-rhel-8-3
Python in RHEL 8 | Red Hat Developer
February 22, 2024 - In Red Hat Enterprise Linux 8, Python 3.6 is the default. But Python 2 remains available in RHEL 8. To install Python, type yum install python3. To run Python, type python3. If that doesn't work for you, or you need more details, read on!
🌐
nixCraft
cyberciti.biz › nixcraft › howto › package management › rhel 8 install python 3 or python 2 using yum
RHEL 8 install Python 3 or Python 2 using yum - nixCraft
May 23, 2024 - To install python 2 on RHEL 8, run: sudo yum install python2 · Upgrade python 3 in RHEL 8, run: sudo yum upgrade python3 · Upgrade python 2 in RHEL 8, run: sudo yum upgrade python2 · Let us see all commands and example in details.
🌐
TecAdmin
tecadmin.net › install-python-3-9-on-centos-8
How to Install Python 3.9 on CentOS/RHEL 8 – TecAdmin
April 26, 2025 - In this tutorial, we will guide you through the process of installing Python 3.9 on CentOS/RHEL 8 operating systems using the source archive file.
🌐
Medium
medium.com › @sahildrive007 › installing-python-3-11-on-rhel-8-server-9fea12c2f6ee
Installing Python 3.11 on RHEL 8 server - sahil suri - Medium
July 4, 2024 - Installing Python 3.11 on RHEL 8 server Here are the steps to install Python 3.11.3 on a RHEL 8 system: 1. Update the System Packages: sudo dnf update 2. Install Development Tools: sudo dnf …
🌐
Eldernode
blog.eldernode.com › tutorial install python 3.8 on centos/rhel 8 linux
Tutorial Install Python 3.8 on Centos/RHEL 8 Linux
September 4, 2024 - In this tutorial, we are going to step by step how to install Python 3.8 on Centos / RHEL 8 Linux. Tutorial How to Configure and Install Python 3.8 on
Find elsewhere
🌐
TecMint
tecmint.com › home › redhat › how to install python 3 or python 2 in rhel 8
How to Install Python 3 or Python 2 in RHEL 8
July 5, 2019 - In this short article, we will show how to install Python 3 and Python 2, and run them in parallel in RHEL 8 Linux distribution.
🌐
GitConnected
levelup.gitconnected.com › how-to-install-python-3-8-on-rhel-8-and-centos-8-fac11aef2165
How to Install Python 3.8 on RHEL 8 and CentOS 8 | by Amit Kumar Manjhi | Level Up Coding
November 8, 2022 - The standard repository for RHEL 8.0 provides Python 3.8. It can be installed using the dnf or yum command. ... Press the Y key to accept the download and installation. ... Note: If you cannot find the command to check the version, I mean it ...
🌐
Cloudera
docs.cloudera.com › cdp-private-cloud-upgrade › latest › upgrade-hdp › topics › cdpdc-install-python-3-rhel.html
Installing Python 3.8 on RHEL 8 for Hue
You must install Python 3.8 on all hosts after installing Cloudera Manager and before adding the services to your cluster.
🌐
Reddit
reddit.com › r/linuxadmin › rhel8 python version management
r/linuxadmin on Reddit: RHEL8 Python Version Management
January 21, 2025 -

I have a question about yum/dnf dependencies. Our security team’s software (Rapid 7) is flagging a lot of instances as having vulnerable Python versions installed. This is because RHEL8 uses Python 3.6 by default. I know we can install newer versions of Python, like 3.11, but is there a way to set that version as the default for any python3 dependency? Example: If I run yum install Ansible on a RHEL8 host yum will list python3.6 as a dependency and install it even if Python 3.11 is already installed. Messing around with Alternatives doesn’t seem to do anything for yum dependencies.

Edit: thanks all. Going to work with our Security team to have Rapid 7 ignore this.

🌐
TecAdmin
tecadmin.net › how-to-install-python-3-10-on-centos-rhel-8-fedora
How to Install Python 3.10 on CentOS/RHEL 9/8 & Fedora
April 26, 2025 - This tutorial described you to install Python 3.10 on Fedora and CentOS/RHEL 8 systems using the source code.
🌐
Medium
yashlahoti.medium.com › installing-python-in-docker-container-in-rhel8-redhat-enterprise-linux-756a6ec507c6
Installing Python in Docker Container in RHEL8(Red Hat Enterprise Linux) | by Yash Lahoti | Medium
June 1, 2021 - 3. If you want to work on a previously created container that is running or has been stopped, use the command: docker ps to check for running container or docker ps -a to check for exit status containers and then start them using command : docker start <container_name/container_id> and then get inside the container terminal using command : docker attach <container_name/container_id>. In the image below you can see I was inside the container terminal and despite exiting the container, I opened the RHEL8 terminal using: Left Control Key+p+q. I did this to check if current container was running or no. You can do this to perform other tasks too. ... Fig 2. Check for containers and run if you want to work on a previously created container or create a new one ... Fig 3. Python Installation
Top answer
1 of 1
3

Two notes: I'm not sure how your container is set. You've tagged this as both RHEL and Fedora. These are two separate distributions. I can comment on Fedora.

Firstly, yes, Python is heavily used in the GNU/Linux world. Most distros use it as one of the languages to build the system and its packages. Linux servers are the only officially recommended servers for Python, or so I've read (will edit with source later if I can find it). Python.org does have Linux downloads, but in source files, packaged in compressed tarballs. This can promote searching the distro package manager first for distro compatibility (since being in a distro's repo should mean the version was vetted); these packages are precompiled unless otherwise specified. It also means the files are distro agnostic -- no need for .DEB, .RPM...

Fedora: There isn't a Fedora version listed in the post, but at least Fedora 31 has a development version, as they call it, of Python 3.8.1 in RPM format. (Fedora 32 is slated to have Python 3.8 at the system level.) You can get it with:

Copysudo dnf install python38

Be sure not to overwrite the system variables for python or python3; this mistake can cause systemic issues of varying magnitude. Once installed, you can create a virtual environment in whichever directory you'd like with:

Copypython3.8 -m venv <venv_name>

To activate the venv, use:

Copy. <path/to/venv>/<venv_name>/bin/activate

You can set an alias or symlink for ease. When the venv is activated, Python 3.8.x will be the Python version used when the interpreter is called. You should see your venv_name in parentheses, to the left of your PS1. To deactivate, use:

Copydeactivate

The venv_name should be removed from the PS1, returning it to normal. Checking the Python version should return the system-level Python version.

If you check your Python version before and after the activation, it should be different.

Copypython3 -V

This package may or may not have been sent downstream to RHEL. If you have the package available but want the full Python stack, or if it isn't available in RHEL's baseline repos, you may need to grab the source files and unpack the tarballs.

Alternatives are checking other repos, seeing about RPMs that someone else compiled from source, or checking out flatpak (which I haven't done).

Last note: compiling from source shouldn't result in a larger Python binary. You can delete any unnecessary extras, like the original archive file used for compiling, after you've extracted what you need. The action itself will only be stored in volatile memory, not on your disk.

🌐
Python Forum
python-forum.io › thread-24366.html
How to install the latest version of Python on RHEL 8?
This is really frustrating. I am looking for the 'installation and configuration' forum on this site, and cannot seem to find it. Is it that no one anywhere has installation and configuration problems with Python ever?
🌐
GitHub
github.com › saltstack › salt › issues › 61346
[FEATURE REQUEST] Packaging - Require a newer Python version on RHEL 8 · Issue #61346 · saltstack/salt
December 10, 2021 - Is your feature request related to a problem? Please describe. Python 3.6 EOL is 2 weeks away or so. Currently, the RHEL8 RPM requires this version and installs it on systems which may already have Python installed. Describe the solution you'd like The EL repos have Python 3.8 and Python 3.9 available.
Author   saltstack