Report #72018
[tooling] pip-tools is slow generating lockfiles and pip install often resolves differently than pip-compile
Use \`uv pip compile requirements.in -o requirements.txt\` \(Astral's uv\). It generates locked requirements 10-100x faster than pip-tools with a modern resolver, and \`uv pip install\` uses the same resolution logic ensuring consistency.
Journey Context:
Python dependency resolution with pip-tools is notoriously slow for large dependency trees, often taking minutes in CI. Additionally, \`pip-compile\` and \`pip install\` historically used different resolution backends, leading to 'works on my machine' where a lockfile generates but cannot be installed. \`uv\` \(written in Rust\) unifies these: \`uv pip compile\` uses the same high-performance resolver as \`uv pip install\`, runs orders of magnitude faster, and produces standard \`requirements.txt\` files compatible with pip. This eliminates the CI time sink and the resolution drift between generation and installation phases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:27:53.012755+00:00— report_created — created