1.Mac安装包管理工具Homebrew:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装Python
略
3.安装pip
$ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 19.2.1
Downloading https://files.pythonhosted.org/packages/8b/8a/1b2aadd922db1afe6bc107b03de41d6d37a28a5923383e60695fba24ae81/pip-19.2.1.tar.gz#sha256=258d702483dd749400aec59c23d638a5b2249ae28a0f478b6cab12ad45681a80
Processing pip-19.2.1.tar.gz
Writing /tmp/easy_install-LzBpsZ/pip-19.2.1/setup.cfg
Running pip-19.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LzBpsZ/pip-19.2.1/egg-dist-tmp-AY7i6k
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/