Python Pip 换源

1、更新Pip

python -m pip install --upgrade pip
Python Pip 换源

2、永久换源(阿里)

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
Python Pip 换源

3、临时换源(阿里)

pip install markdown -i https://mirrors.aliyun.com/pypi/simple/

4、验证源是否生效

pip config list
Python Pip 换源

5、恢复默认源

删除配置文件或运行:

pip config unset global.index-url

6、国内常用镜像源

镜像源名称 镜像源 URL
阿里云 mirrors.aliyun.com/pypi
清华大学 pypi.tuna.tsinghua.edu.cn
豆瓣 pypi.douban.com/simple/
华为云 repo.huaweicloud.com/re
腾讯云 mirrors.cloud.tencent.com

给TA打赏
共{{data.count}}人
人已打赏
网络技巧

在非原生ESIM设备上申请Giffgaff ESIM

2025-7-31 13:48:08

网络技巧

cloudflare tunnel 详细介绍 —— 面向cloudflare的网站搭建,1分钟快速启动一个有ssl证书的wordpress博客

2023-2-27 9:10:22

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索