with python 2 reaching EOL how to make python3 the default python ? ... system wide not just a specific script

should we do a symbolic link ?

sudo ln -s /usr/bin/python3 /usr/local/bin/python

or possibly

sudo update-alternatives --set python /usr/bin/python3 

Does it matter which ? I am on a box without python 2 so I have no python 2 specific libraries to deal with.

of course just making below edit to your ~/.bashrc will only impact one user

alias python=python3

I am looking for a system wide change for all processes and userids not just me



Browse other questions tagged or ask your own question.