(区分大小写)查看pip 版本 指令:pip -V
# Python 永久配置清华大学镜像
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# Python 永久配置阿里云镜像
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
# Python 永久配置豆瓣镜像
pip config set global.index-url http://pypi.douban.com/simple/
# Python 永久配置中国科技大学镜像
pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
# Python 永久配置华中理工大学镜像
pip config set global.index-url http://pypi.hustunique.com/
# Python 永久配置山东理工大学镜像
pip config set global.index-url http://pypi.sdutlinux.org/
# 临时下载 xxx == 你要的库
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
本文介绍了如何通过pip命令永久配置Python的包管理器使用不同的国内镜像源,包括清华大学、阿里云、豆瓣等,以加快Python包的下载速度。
2436

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



