easy_install的配置文件
修改文件 ~/.pydistutils.cfg为: [easy_install] index_url = https://pypi.tuna.tsinghua.edu.cn/simple
直接在setup.py的同目录放置一个setup.cfg: [easy_install] index_url = https://pypi.tuna.tsinghua.edu.cn/simple
pip的配置文件 ~/.pip/pip.conf
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple
easy_install/pip命令行Shell
easy_install -i https://pypi.tuna.tsinghua.edu.cn/simple pip
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple lxml