pip 加速
清华:https://pypi.tuna.tsinghua.edu.cn/simple
网易:https://mirrors.163.com/pypi/simple/
可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xxx
永久修改,一劳永逸:
linux下,修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url至tuna,内容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
本文介绍如何使用清华大学和网易的镜像源加速pip安装过程。通过修改pip命令或配置文件,可显著提高Python包的下载速度,实现高效开发环境搭建。
678

被折叠的 条评论
为什么被折叠?



