CentOS 7.7 and Python - Unix & Linux Stack Exchange
software installation - Is it safe to install Python 3 in CentOS Linux 7? - Unix & Linux Stack Exchange
Python 3 is the default Python implementation in RHEL 8
Red Hat Enterprise Linux 8 is distributed with
Python 3.6. The package is not installed by default. To installPython 3.6, use theyum install python3command.
Python 2.7is available in thepython2package. However,Python 2will have a shorter life cycle and its aim is to facilitate smoother transition toPython 3for customers.Neither the default
pythonpackage nor the unversioned/usr/bin/pythonexecutable is distributed with RHEL 8. Customers are advised to usepython3orpython2directly. Alternatively, administrators can configure the unversionedpythoncommand using thealternativescommand.For details, see Using Python 3 in Red Hat Enterprise Linux 8.
(BZ#1580387)
More on reddit.com
So.. removing Python 2.7.5 from Centos 7.x?
Videos
Python 3 is available in the python3 package:
yum install python3
The interpreter is also python3, python will still run the Python 2 interpreter.
Python 2 has been declared EOL by the PSF, but Red Hat still provides support for Python 2 in RHEL, and CentOS should continue to benefit from that support.
Python 2.7.5, which comes from CentOS, is not actually EOL as CentOS will support it throughout the lifecycle of CentOS 7. The same is true for the Python 2.7.5 that comes with Red Hat Enterprise Linux 7.
If you want to get Python 3, then you can install it with:
yum install python3
You can also get it from from the CentOS Software Collections Repo:
yum install centos-release-scl
You can then install any subversion of Python 3 up to 3.6 with:
yum install rh-python33
yum install rh-python34
yum install rh-python35
yum install rh-python36