How to Install Python on CentOS Stream 9

Python is an interpreted high-level general-purpose programming language. Its design philosophy emphasizes code readability with its use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.

Update the System

dnf update  

Install Python

Let us now install the latest version of Python 3.9 by running the below command

yum install python

Now check the Python version using the following command

python --version

Now you have successfully installed Python on your CentOS Stream 9.