【Python】uv更换全局镜像源
✨uv
An extremely fast Python package and project manager, written in Rust.

Installing Trio's dependencies with a warm cache.
- 🚀 A single tool to replace
pip,pip-tools,pipx,poetry,pyenv,twine,virtualenv, and more. - ⚡️ 10-100x faster than
pip. - 🗂️ Provides comprehensive project management, with a universal lockfile.
- ❇️ Runs scripts, with support for inline dependency metadata.
- 🐍 Installs and manages Python versions.
- 🛠️ Runs and installs tools published as Python packages.
- 🔩 Includes a pip-compatible interface for a performance boost with a familiar CLI.
- 🏢 Supports Cargo-style workspaces for scalable projects.
- 💾 Disk-space efficient, with a global cache for dependency deduplication.
- ⏬ Installable without Rust or Python via
curlorpip. - 🖥️ Supports macOS, Linux, and Windows.
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
版权所有,如需转载请注明出处。

浙公网安备 33010602011771号