已有版本是python3.9的,brew也安装了3.10,要切换到3.10,只需要修改软链接即可
Target /usr/local/bin/2to3
is a symlink belonging to python@3.9. You can unlink it:
brew unlink python@3.9
To force the link and overwrite all conflicting files:
brew link --overwrite python@3.10
To list all files that would be deleted:
brew link --overwrite --dry-run python@3.10