【Python】uv更换全局镜像源

✨uv

https://docs.astral.sh/uv/

An extremely fast Python package and project manager, written in Rust.

Installing Trio's dependencies with a warm cache.

Highlights

uv is backed by Astral, the creators of Ruff.


✨uv更换全局镜像源

mkdir ~/.config/uv && vim ~/.config/uv/uv.toml

写入以下配置项即可

[[index]]
url = "https://pypi.mirrors.ustc.edu.cn/simple/"
default = true

如需使用其他镜像源可自行选择

阿里云
https://mirrors.aliyun.com/pypi/simple/

中科大
https://pypi.mirrors.ustc.edu.cn/simple/

清华
https://pypi.tuna.tsinghua.edu.cn/simple/

豆瓣
https://pypi.douban.com/simple/

⭐转载请注明出处

本文作者:双份浓缩馥芮白

原文链接:https://www.cnblogs.com/Flat-White/p/18920080

版权所有,如需转载请注明出处。

posted @ 2025-06-09 02:52  双份浓缩馥芮白  阅读(5219)  评论(0)    收藏  举报