
Next, build Python using the following command: sudo make altinstall.Once the file has extracted, move into the directory that was created and configure the installation using the following command.Once the file is downloaded, extract it using the following command: tar -xvf Python-3.9.6.tgz.Once that is done, download the latest version of Python using the wget command as follows: wget.Sudo yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel Before installing Python you will first need to install the requisite software packages using the following command:.Now that we have PIP installed, we can proceed with installing the latest version of Python, 3.9. If successful, the system should display the PIP version as well as your current Python version.


Issue the following command to install Python: We may need to add the user to the sudoers file. If the user is not able to able to run the sudo command. Issues the following command to update the currently installed packages on the CentOS Linux box. If the command output displays the Python version then the software is already installed on the machine. Python installation is simple and can be done by running some commands in the Terminal.įirst things first, check if the python3 package is installed on the machine before proceeding further. In this tutorial, we will install Python on CentOS Linux distribution.
