Python:利用国内镜像安装pip依赖包

安装命令

临时命令

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <package-name>

永久配置

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

镜像源

序号 镜像名称 镜像地址
1 清华大学镜像站 https://pypi.tuna.tsinghua.edu.cn/simple
2 阿里云镜像站 https://mirrors.aliyun.com/pypi/simple
3 中科大镜像站 https://pypi.mirrors.ustc.edu.cn/simple
4 中国科技大学镜像站 https://pypi.mirrors.ustc.edu.cn/simple
5 中国科学技术大学镜像站 https://pypi.mirrors.ustc.edu.cn/simple
6 华中科技大学镜像站 https://pypi.hustunique.com
posted @ 2024-04-10 14:25  光夜  阅读(136)  评论(0)    收藏  举报
点击右上角即可分享
微信分享提示