1. 设置全局源:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
2. 设置临时源:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
3. 常用pypi源:
清华源 | https://pypi.tuna.tsinghua.edu.cn/simple |
豆瓣源 | https://pypi.doubanio.com/simple/ |