已有版本是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
切换Python版本
本文介绍如何在Mac上使用Homebrew切换Python版本,从Python 3.9平滑过渡到Python 3.10的方法。通过修改软链接的方式实现版本切换,避免版本冲突。
1705

被折叠的 条评论
为什么被折叠?



