
Let’s set default python to python3 on CentOS 8: It could be a little bit intricate for some to type python3 command to use. python3 -versionĬhange Python3 command to the Python only If you cannot find the command to check the version, I mean it doesn’t work then simply update the system using dnf update and logout and login again. Now check the version using below given command. Python3-setuptools noarch 39.2.0-4.el8 BaseOS 162 k Python3-pip noarch 9.0.3-13.el8 AppStream 18 k Last metadata expiration check: 0:07:01 ago on Sun 12:11:09 AM EDT. The output for the above command: ~]# dnf install python36 Press Y key to accept the download and installation. However, we are going to use the dnf because it is the future of package manager of theses Linux OS.

It can be installed using the dnf or yum command. The standard repository for RHEL 8.0 provides Python 3.6. Summary of Python setup Add Python 3.6 to RHEL 8/CentOS 8/Stream
