pip

1 MacOS 安装

sudo easy_install pip

2 全局指定源

touch ~/.pip/pip.conf

# pip.conf
[global]
timeout = 60
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

单次安装可以在命令行指定: pip install tornado -i https://pypi.douban.com/simple

3 指定用户

pip install --user mysql-python