安裝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 已經(jīng)廢棄
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/