安装python3
首先安装homebrew
安装home-brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装python3
brew install python3
安装最新版本的python3
安装pip
easy_install 已经废弃
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
Reference
QuickTip: How do I install pip on macOS or OSX
https://ahmadawais.com/install-pip-macos-os-x-python/