Mac系統自帶python路徑為:
/System/Library/Frameworks/Python.framework/Version
brew 安裝 Python3
在終端輸入以下命令:
brew search python3@ # 查看支持安裝的版本
brew install python3
就可以輕松easy安裝python了,安裝完成后提示
查看 python3 安裝路徑
不必在意出現多個 /usr/local/bin/python3
# 查看 mac下都有哪些 Python3的安裝路徑
viatorsun@MacBook ~ % where python3
/Library/Frameworks/Python.framework/Versions/3.8
/usr/local/bin/python3
/usr/local/bin/python3
/usr/local/bin/python3
/usr/bin/python3
大意就是:python安裝完成,具體路徑是:
/usr/bin/python3
可以在finder中前往,
并通過以下命令把軟件鏈接到LaunchPad中,也就是應用程序里。試一下:
brew linkapps python3
完成后提示:
再一看launchPad果然多了兩個APP
參考:
文章
https://blog.csdn.net/ViatorSun/article/details/108578409?ops_request_misc=%257B%2522request%255Fid%2522%253A%25225a267fcffa2cbedc0e71b6a752a6b9b0%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=5a267fcffa2cbedc0e71b6a752a6b9b0&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2alltop_positive~default-1-108578409-null-null.142v102control&utm_term=homebrew%E5%AE%89%E8%A3%85python&spm=1018.2226.3001.4187