

Linux IP forwarding – How to Disable/Enable.How to use bash array in a shell script.AMD Radeon Ubuntu 20.04 Driver Installation.How to install missing ifconfig command on Debian Linux.Ubuntu 20.04 Remote Desktop Access from Windows 10.How to find my IP address on Ubuntu 20.04 Focal Fossa Linux.


However, since the python2.7 is a default system wide python interpreter you now need to explicitly set you new version. Change to root or use sudo command to start installation:Īfter installation you can find your new python interpreter at the following location /usr/local/bin/. The default installation path is /usr/local/bin. If no output errors were produced during the compilation you are ready to install your newly compiled python binaries. Now we are ready for the actual python source code compilation:ĭepending on your system, the compilation will take few minutes. Example:Īt this stage we need to decompress the downloaded tarball: First, download your desired python version from. Next, we will install all python build prerequisites to meet all compilation requirements:įollowing steps can be executed as a regular user. Let’s start by installation of some required tools which you will need for this tutorial. The following config will show you how to compile and install Python version 3 from source on CentOS 7 Linux. By specifiying "python3.6" in the shebang, you get version 3.6.The python version 3 is not available from CentOS 7 repositories. If you were to just use just "python" in the shebang, then you get version 2 of Python. Be sure to replace the shebang at the beginning of the script from "python" to "python3.6", like this: # yum install python36u python36u-libs python36u-devel python36u-pip If you do wish to use Python version 3, you can download this version from, which is an online community dedicated to delivering high quality packages of newer versions of popular software. Python version 3 is available, however, it is not included with the Red Hat and/or CentOS distribution (at the time of writing this article). Red Hat / CentOS versions come, by default, with an older version of Python installed: Topics: Red Hat / Linux Install Python version 3 on Red Hat / CentOS
