python配置国内pypi镜像源操作步骤


使用pip config命令设置默认镜像源,使用国内的源,提高安装速度

 

操作步骤

临时方式
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple

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

 

国内镜像源

清华大学开源软件镜像站(https://mirrors.tuna.tsinghua.edu.cn/)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

 

中国科学技术大学开源软件镜像站(https://mirrors.ustc.edu.cn/)
pip config set global.index-url http://pypi.mirrors.ustc.edu.cn/simple/ 

 

上海交通大学软件源镜像服务站(https://mirror.sjtu.edu.cn/)

pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple

 

豆瓣python-pip镜像
pip config set global.index-url http://pypi.douban.com/simple/ 

 

阿里巴巴开源镜像站(https://opsx.alibaba.com/mirror/)

pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/ 

 

华为开源镜像站(https://mirrors.huaweicloud.com/)

pip config set global.index-url https://repo.huaweicloud.com/repository/pypi/simple

 

网易开源镜像站(http://mirrors.163.com/)

pip config set global.index-url https://mirrors.163.com/pypi/simple/

 

腾讯软件源(https://mirrors.cloud.tencent.com/)

pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple

 



posted @   windfic  阅读(794)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
点击右上角即可分享
微信分享提示