


To dissociate itself from “ Python2 or Python3: which version should be set as the default on Linux” debates, RedHat has not included a python command by default – what is referred to as the “ unversioned command“. Install Python 2.7 in RHEL 8 How to Run Python in RHEL 8Īfter installing Python, you would expect that /usr/bin/python will run a certain version of Python. If you want to install Python 2 in parallel with Python 3, run the following command which will install Python 2.7 on your system. # dnf install python3įrom the output of the command, Python3.6 is the default version which comes with PIP and Setuptools as dependencies. To install Python 3 on your system, use the DNF package manager as shown. Platform-python can’t be used by applications but you can only employ it for writing system/administrative code. This is because there is an internal Python interpreter called “ Platform-Python” which is used by system tools. Although Python is not installed in RHEL 8 by default, but yum still works even if you don’t install Python. Important: Most Linux distributions use Python for a number of libraries and tools as YUM package manager.

# yum install python36u python36u-libs python36u-devel python36u-pip If you do wish to use Python version 3, you can download this version from, which is an online community dedicated to delivering high quality packages of newer versions of popular software. Python version 3 is available, however, it is not included with the Red Hat and/or CentOS distribution (at the time of writing this article). Red Hat / CentOS versions come, by default, with an older version of Python installed: Topics: Red Hat / Linux Install Python version 3 on Red Hat / CentOS
