How to Install Python 3.9 on Rocky Linux

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.

yum update 

Install Python 3.9

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

yum install python39

Output:

[root@vps ~]# yum install python39
Last metadata expiration check: 0:33:08 ago on Saturday 28 August 2021 11:54:31 AM EDT.
Dependencies resolved.
===============================================================
 Package
   Arch   Version                              Repo       Size
===============================================================
Installing:
 python39
   x86_64 3.9.2-1.module+el8.4.0+574+843c4898  appstream  31 k

Now check the Python version using the following command.

python3 --version

Output:

[root@vps ~]# python3 --version
Python 3.9.2
[root@vps ~]# 

Done.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS