xxxxxxxxxx
For People using zsh and pyenv.
echo "alias python=~/.pyenv/versions/3.10.6/bin/python3.10" >> ~/.zshrc
xxxxxxxxxx
# it is said not to do but I used it anyway, because of the conveniency
$ echo "alias python=/usr/local/bin/python3.7" >> ~/.zshrc
xxxxxxxxxx
unlink /usr/local/bin/python
ln -s /usr/local/bin/python3.3 /usr/local/bin/python