CentOS Stream 9
Sponsored Link

Python 3.12 : Install2024/06/04

 
Install Python 3.12.
[1] Install Python 3.12.
[root@dlp ~]#
dnf -y install python3.12 python3.12-pip
[root@dlp ~]#
python3.12 -V

Python 3.12.1

[root@dlp ~]#
pip3.12 -V

pip 23.2.1 from /usr/lib/python3.12/site-packages/pip (python 3.12)

# verify to create a test script

[root@dlp ~]#
echo -e "import sys\nprint(sys.version)" > python3_test.py

[root@dlp ~]#
python3.12 python3_test.py

3.12.1 (main, Feb 19 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)]
Matched Content