背景
在Mac上运行brew install python3
之后,我希望在/usr/local/bin
中有python3的象征,但有三个没有。
使用brew info python3
检查,它显示
python has been installed as /usr/local/bin/python3
而且,python3确实安装在/usr/local/Cellar/python/3.7.7/bin
中。
有人知道如何在不手动链接/usr/local/bin
的情况下解决这个问题吗?
这个文章在这样报道同样的问题,但它没有解决办法。
还发现了一份问题报道。
更新
在运行下面的命令之后,它在/usr/local/bin
中确实有正确的链接。
brew uninstall python3
brew install python3
发布于 2022-06-09 01:54:12
# Overwrite any python 3 brew symlink
brew link --overwrite python3
# Link python3 to python2 using prior symlink to symlink
ln -s /usr/local/bin/python3 /usr/local/bin/python
https://stackoverflow.com/questions/60711023
复制相似问题