1.首先mac會自帶Python的,版本應(yīng)該都是Python2的,但是這個最好不要亂動,我們可以自己下載一個Python2
2.打開終端,輸入:brew install python ,Python2安裝成功啦,可以用命令查看:Python --version
3.打開終端,輸入:brew install python3 ,Python3安裝成功啦,可以用命令查看:Python3 --version
4.路徑都會有保存在/usr/local/Cellar/,所以在終端可以直接使用命令打開文件:open /usr/local/Cellar/,就會看到pyhon和Python3兩個文件夾
詳細(xì)解決方案見知乎:https://zhuanlan.zhihu.com/p/29677452