The Python 3 interpreter is not available on the RHEL 8 default installation. However, it can be installed with a single dnf
command.
In this tutorial you will learn:
- How to install Python 3 on Redhat 8.
- How to to check Python version on Redhat 8.
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | Red Hat Enterprise Linux 8 |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions |
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
How to Install python 3 on Redhat 8 step by step instructions
- To install Python 3 on Red Hat Enterprise Linux 8 execute the following
dnf
command:# dnf install python3
- Use
--version
option to check the installed Python version. For example:# python3 --version Python 3.6.6