The EOL of Python 3.9.6 is Oct 2025, so you can use that version. Python 3.9.6 is the latest version available in the CentOS 8 repos.
3.6 reached its EOL in Dec 2021, so you should upgrade ASAP.
Python 3.6.8 is the latest version available in the CentOS 7 repos.That version has reached its EOL years ago, so you should upgrade ASAP. Recommended read: Best Linux Distro for Programming Default Versions of Python in CentOSĭepending on when you’re reading this or what version you’re using, the version that you have installed by default or the version that’s available in the CentOS repo might be different. If Python is installed, one or both commands will give you an output of the version that’s installed. To check what version of Python you have installed (if any), run the following commands: python -V python3 -V On some systems, Python may already be installed. If you need a server, you can get one from Linode, or choose another Linux VPS provider.This tutorial will work for CentOS 7, CentOS 8, AlmaLinux, Rocky Linux, and other RHEL-based distros. SSH access to the server, or just use Terminal if you’re on a desktop.Root access or a user with sudo privileges.This is what you’ll need for this tutorial: This tutorial includes instructions for Python 3.10 and Python 3.11 on CentOS 7 and CentOS 8.Īlternative tutorial: How to install Python on Ubuntu. In this tutorial, we’re going to show you how to install Python (the latest version) on CentOS with step-by-step instructions.