1.在mac安装homebrew
https://brew.sh/index_zh-cn.html
2.通过命令安装python3
brew install python3
等待就可以了
2.mac开发python最好的方式通过pycharm非常方便
设置python版本
1> Pycharm - Preference - Build,Deployment - Python Console - Python interpreter
选择自己安装的
2> Pycharm - Preference - Project:xxx - Python Interpreter 选择自己安装的
方便安装第三方组件