

With the above settings, pipcommands can now be called alone. Thus, when we type pip in the background the default pip3 command will execute. However, the command to set alternative is a little bit different here, instead of created any symbolic link we just make the PIP command as an alias of pip3. Like Python commands, we can change pip3 command to be pip to use its initial form without any version figure.Ĭheck the PIP version using pip3 command: pip3 -version Use it alone to check the installed version on CentOS/Stream or RHEL 8. Now it is possible to execute Python commands alone. Output There are 2 programs which provide 'python'.Įnter to keep the current selection, or type selection number: 2 So, enter the number on the left side of Python 3 (here it is 2) and press Enter button to complete the setting… Just type a serial number of the version you want to use.

Here we have only one that is 3.6, so we got that. When you run the above command list of all installed Python on your system will appear. What we are doing here, we configuring and assigning initial syntax of this language command that is Python to python3. Since we have installed Python3.6.By default, Python3 is the command available to use, so here we change and set Python command as its alternative which can be executed with another syntax in a single command. 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
