🐍 安装最新的 uv 在 Debian 上

Extremely fast Python package and project manager

Latest Version: 0.8.8+ (August 2025)
← 返回首页

什么是 uv?

uv is an extremely fast Python package and project manager written in Rust by Astral (creators of Ruff). It's designed as a single tool to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more, providing 10-100x faster performance than traditional Python tooling.

⚡ Performance Benchmarks:
  • 10-100x faster than pip for package installation
  • Resolves dependencies in milliseconds vs seconds
  • Global cache for disk-space efficient dependency deduplication
  • Parallel downloads and installations
🚀 Why Latest Versions Matter: uv is rapidly evolving with frequent releases containing major performance improvements, new features, and enhanced Python ecosystem compatibility. The latest versions include project management features, Python version management, and significant workflow improvements.

⚡ Key Features of uv

🚀 Blazing Fast

10-100x faster than pip with Rust-powered performance. Parallel downloads, efficient caching, and optimized dependency resolution.

🗂️ Project Management

Comprehensive project management with universal lockfiles, workspace support, and dependency tracking similar to Poetry.

🐍 Python Version Management

Install and manage multiple Python versions. Download Python versions as needed, switch between them effortlessly.

🛠️ Tool Management

Run and install Python tools with uvx (like pipx). Execute tools in ephemeral environments or install them globally.

📜 Script Support

Run single-file scripts with inline dependency metadata. Automatic environment creation and dependency management.

🔩 pip Compatible

Drop-in replacement for pip, pip-tools, and virtualenv with familiar CLI and advanced features like platform-independent resolutions.

🆕 What's New in uv 0.8.8+

📦 从 debian.griffo.io 安装

步骤 1:添加仓库

curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/debian.griffo.io.list sudo apt update
curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/debian.griffo.io.gpg echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/debian.griffo.io.list apt update

步骤 2:安装 uv

# Install latest uv sudo apt install uv # Verify installation uv --version
# Install latest uv apt install uv # Verify installation uv --version

🎯 基本使用示例

Project management:

# Create new Python project uv init my-project cd my-project # Add dependencies uv add requests pandas # Run project uv run python main.py # Sync dependencies uv sync

Replace pip commands:

# Create virtual environment uv venv # Install packages (much faster than pip) uv pip install requests numpy pandas # Compile requirements uv pip compile requirements.in # Sync requirements uv pip sync requirements.txt

Python version management:

# Install Python versions uv python install 3.11 3.12 3.13 # Use specific Python version uv python pin 3.12 # Run with specific Python uv run --python 3.11 python script.py

Tool management:

# Run tool in ephemeral environment uvx black . uvx ruff check # Install tool globally uv tool install black uv tool install ruff # List installed tools uv tool list

🚀 为什么选择 debian.griffo.io?

📊 Installation Comparison:
  • Official Debian: Often outdated versions missing latest features
  • pip install: Slower, requires Python already installed
  • Curl installer: Manual updates, no package management
  • debian.griffo.io: Latest version (0.8.8+) with automatic updates

🏆 Why uv is Revolutionary

  • Speed: Rust implementation provides 10-100x performance improvement
  • Unified Tool: Replaces multiple Python tools with single binary
  • Modern Features: Lockfiles, workspaces, and advanced dependency resolution
  • Compatibility: Drop-in replacement for existing workflows
  • Reliability: Deterministic builds and reproducible environments

📦 软件包构建仓库

Debian 软件包在此 GitHub 仓库中自动构建和维护:

🔗 相关软件包

也可从 debian.griffo.io 获取:

🎯 Perfect for: Python developers who want faster package management, teams needing reproducible environments, anyone frustrated with slow pip operations, and projects requiring modern Python tooling with performance.