Install Python 3.9 on Centos 8 - shaysalomon12/Data-Engineer GitHub Wiki

  1. Connect to Linux box.
  2. Update the system (bash)
yum update
  1. Install the latest version of Python 3.9 (bash)
yum install python39

Output

[root@vps ~]# yum install python39
Last metadata expiration check: 0:24:54 ago on Saturday 28 August 2021 01:14:12 PM EDT.
Dependencies resolved.
===============================================================
 Package
   Arch   Version                              Repo       Size
===============================================================
Installing:
 python39
   x86_64 3.9.2-1.module_el8.4.0+720+bfbc1bcb  appstream  32 k
  1. Verify Python version (bash)
python3 --version

Output

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