How to Install Python 3.12 on CentOS Stream 10

Python is an interpreted, high-level general-purpose programming language. Its design philosophy emphasizes code readability, using indentation for better structure. Python’s object-oriented approach helps developers write clear and logical code for both small and large-scale projects.

Update the System

Update your system packages using:

dnf update -y

Install Python

Install Python 3.12 using the following command:

dnf install python3

Output

Dependencies resolved.
==================================================================
 Package             Arch   Version                   Repository
==================================================================
Installing:
 python3            x86_64 3.12.1-1.el10             appstream

Verify Installation

After installation, check the installed Python version:

python3 --version

Output

Python 3.12.9

Install Pip

To install pip for managing Python packages, run:

dnf install python3-pip

Now, Python 3.12 is installed on your CentOS Stream 10 system, ready for use. 🚀


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