Step 2 – Install Python 3.9 on CentOSĬhange directory to Python-3.9.16 and use the following commands to compile Python source code on your system using altinstall. This will create a directory named Python-3.9.16 in the current directory. Then, extract the archive file on your system: tar xzf Python-3.9.16.tgz You can install Python 2 from the CentOS repository with a single command: dnf install python2 Type y and hit Enter to confirm you want to install. Upgradeing your python2.7 to python3 is therefore not possible you will have to install python3 manually. ADVERTISEMENT tar xzf Python-3.7.11.tgz Step 3 Install Python 3. cd /usr/src wget Now extract the downloaded package. You can also download the latest version in place of specified below. or if you leave it blank you enter the python3 console. Download Python using the following command from the Python official site. You can also download the latest version in place of the specified below. You can just run python3 using the python3 option command where option can be what you want to execute or how. sudo yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel Step 1 – Download Python 3.9ĭownload Python using following command from python official site. Now, use the following command to install prerequisites for Python before installing it. Oracle Linux yum server offers updates for Platform Python included with Oracle Linux as well as new versions of Python via the Software Collection Library (SCL). Login to your server using ssh or shell access. This Python installation required the GCC compiler on your system. This method of installation ensures that you have full control over the installation process and can customize it to suit your specific needs. In this tutorial, we will guide you through the process of installing Python 3.9 on CentOS/RHEL 7 and Fedora operating systems using the source archive file.
0 Comments
Leave a Reply. |