set default version for python3 code example Example: change default python version sudo update-alternatives --config python