pip ist der Standard, Poetry fügt Lockfile und Build-System hinzu, uv ist ein 10-100x schnellerer Ersatz für pip.
Vergleich¶
- pip: Eingebaut, einfach, kein natives Lockfile
- poetry: Lockfile, Dependency Resolution, Build & Publish
- uv: Rust-basiert, extrem schnell, Drop-in-Ersatz für pip
uv — Empfehlung für 2025+¶
Projekt erstellen¶
uv init myproject cd myproject
Abhängigkeiten hinzufügen¶
uv add flask sqlalchemy uv add –dev pytest ruff
Sync (Installation)¶
uv sync
Ausführen¶
uv run python main.py uv run pytest
Wichtigste Erkenntnis¶
uv für neue Projekte (Geschwindigkeit + Lockfile). Poetry zum Veröffentlichen auf PyPI. pip nur für einfache Skripte.
pythonpippoetryuv