Upgrade Python In Linux [better]
Check the new version with python3.12 --version . Avoid changing the default python3 symlink, as it can break system tools like apt . Fedora, CentOS, and RHEL
Upgrading Python in Linux requires a careful approach because many system utilities rely on the default pre-installed version. Simply overwriting the system Python can lead to a broken OS. upgrade python in linux
$ python-upgrader --target 3.12.0 --method pyenv Check the new version with python3

