1Simple solution is edit .bashrc and put this line:
2
3alias python3=python3.7
4Whenever you will write python3 it will replace it with python3.7.
5
6Or you can use command update-alternatives which is preferred i.e:
7
8sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
9sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
10So here python3.7 will have higher priority then python3.6. Then use:
11
12sudo update-alternatives --config python3
13Press the enter key if you are satisfied