Scripts2026年3月29日·1 分钟阅读

UV — Ultra-Fast Python Package Manager

Rust-powered Python package and project manager. 10-100x faster than pip. Drop-in replacement with lockfiles, virtual environments, and Python version management.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

curl -LsSf https://astral.sh/uv/install.sh | sh

# Replace pip
uv pip install requests

# Or use as project manager
uv init my-project
cd my-project
uv add fastapi uvicorn
uv run python main.py

介绍

UV is a Rust-powered Python package and project manager from Astral (creators of Ruff). It's a drop-in replacement for pip, pip-tools, pipx, poetry, pyenv, and virtualenv — but 10-100x faster.

Best for: Any Python development — faster installs, reproducible environments Works with: All Python projects, CI/CD pipelines


Key Features

  • Blazing fast — 10-100x faster than pip (Rust-powered resolver)
  • Drop-in replacementuv pip install works exactly like pip install
  • Project managementuv init, uv add, uv run, uv lock
  • Python versionsuv python install 3.12 (replaces pyenv)
  • Tool runneruvx ruff check . (replaces pipx)
  • Lockfiles — Deterministic uv.lock for reproducible builds
  • Cross-platform — Windows, macOS, Linux

🙏

来源与感谢

Created by Astral. Licensed under Apache 2.0 / MIT. astral-sh/uv — 35K+ GitHub stars

相关资产