I have been using linux mint for a while and have started coding in python recently. I once changed the symlink for python which by default was pointing to python2.7 in /usr/bin to python3.8. The system crashed on the next login. I ended up reinstalling the OS.
I then tried update-alternatives
to link python to python3.8. It again crashed. I eventually just created an alias for it in ~/.bashrc. However, I just realized that sudo (root) does not source ~/.bashrc.
Is there a way to link the python command to python3.8 without the system crashing (linux mint)?