(usually /usr/bin/python3 ). Linux distributions rely on a specific Python version for tools like apt , yum , gnome-terminal , and update managers. Removing or overwriting it can break your OS.
sudo pacman -S python3.11
Updating Python on Linux requires balancing system stability with access to modern language features. how to update python on linux