Python Package Management with UV
UV is a blazing-fast Python package and project manager written in Rust.
Reference
Installation
# Using pip
# Or using the standalone installer
|
# Or using cargo
Using UV to Run Python Projects
# Navigate to the project root first
# Initialize UV project configuration
# Add dependencies
# Run a Python script
# Run arbitrary commands
Common Commands
# Create a virtual environment
# Install packages
# Export dependencies
# Sync dependencies
# Show dependency tree
Advantages
- 🚀 Blazing fast: 10–100× faster than pip
- 📦 Compatible: Fully compatible with pip and requirements.txt
- 🔧 All-in-one: Combines venv, pip, and pip-tools functionality
- 🦀 Rust: Built with Rust — stable and reliable
Comments