Skip to content

Instantly share code, notes, and snippets.

@tarivs
Created August 6, 2019 06:44
Show Gist options
  • Save tarivs/66f54f42448c99f012e993a56c388032 to your computer and use it in GitHub Desktop.
Save tarivs/66f54f42448c99f012e993a56c388032 to your computer and use it in GitHub Desktop.
python_package_source_configure

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 命令行

easy_install -i https://pypi.tuna.tsinghua.edu.cn/simple pip

pip install 命令行

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple lxml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment