After running brew install python3
on Mac, I expect there are symbolic of python3 in /usr/local/bin
, but three aren't.
Checked with brew info python3
, it shows
python has been installed as /usr/local/bin/python3
Also, python3 is indeed installed in /usr/local/Cellar/python/3.7.7/bin
Could anyone know how to fix this issue without making links to /usr/local/bin
manually?
This article in SO reported the same issue, but it has no solution.
Also Found an issue reported.
After running commands below, it does have correct links in /usr/local/bin
.
brew uninstall python3
brew install python3
# 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.