In this tutorial, we will consider how to enable both Python 2 and Python 3 for use on CentOS 8. In earlier distributions of CentOS, an unversioned Python command was available by default.
When the CentOS installation was complete, it was possible to drop into a Python shell by simply running the “python” command in a terminal.
Paradoxically, CentOS 8 does not have an unversioned Python command by default. This begs the question, why? RedHat states that this choice is by design “to avoid locking users into a specific version of Python.” Currently, RedHat 8 utilizes Python 3.6 implicitly by default, although Python 2.7 is additionally provided to maintain existing software.Continue reading “How to Install Python on CentOS 8”