There are multiple ways to achieve this.
Assuming you are on some *NIX OS using a bourne-shell-like shell, you could define an alias alias python python3
.
You could also place a symlink named 'python', pointing to python3 into a directory that is listed earlier in your PATH:
# on debian-like distributions, the following directories should be reasonable
ln -s ~/.local/bin/python "$(which python3)"
# place the following line into your .bashrc
export PATH="~/.local/bin/python:$PATH"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…