1.先安装homebrew
2.再安装Xcode command line tools
3.再安装Python3
brew install python3
py3会被安装到homebrew的库中去。/usr/local/Cellar/python3/Python3.6