Lazy loaded image
各种换源整理
字数 516阅读时长 2 分钟
2025-6-7
2025-7-25
type
status
date
slug
summary
tags
category
icon
password

Ubuntu 换源

Ubuntu 24.04 之前

替换/etc/apt/sources.list中的内容
22.04 → jammy
24.04 → noble

Ubuntu 24.04 开始

替换/etc/apt/sources.list.d/ubuntu.sources中的内容
 

Python Pip 换源

更新 pip

python -m pip install --upgrade pip

永久换源(阿里)

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

临时换源(阿里)

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

验证源是否生效

pip config list

恢复默认源

pip config unset global.index-url

国内常用镜像源

镜像源名称
镜像源 URL
阿里云
清华大学
豆瓣
华为云
腾讯云

Anaconda 换源

替换~/.condarc中的内容
 
上一篇
WSL 常用操作
下一篇
Gemini 模型索引