![]() 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 also download the latest version in place of the specified below. Once the installation is finished, check your Python version. This may take quite a while, depending on your machine. configure -enable-optimizations make altinstall. 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. We use altinstall to install the new version of Python without replacing the default Python 2.7.5 that is used by CentOS 7. Now, use the following command to install prerequisites for Python before installing it. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |