打开终端
输入:xcode-select --install
安装homebrew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
如果报错就输入:sudo xcodebuild -license
上面一路空格键space
按下去,然后输入agree
输入指令:brew -v
安装指令:brew install python3
查看版本:python3 --version