Report #17615
[tooling] pip-tools is slow for resolving Python dependencies and pip install lacks lockfile reproducibility
Use \`uv pip compile requirements.in -o requirements.txt --upgrade-package requests\` for 10-100x faster resolution, then \`uv pip sync requirements.txt\` for deterministic installation
Journey Context:
Traditional \`pip freeze\` captures installed versions but doesn't resolve conflicts or track indirect dependencies. pip-tools provides \`pip-compile\` but is slow on large dependency trees due to Python's resolver. \`uv\` \(Rust-based\) implements the full pip-compile/pip-sync workflow with a global cache and parallel resolution. Key differences: \`--upgrade-package\` allows selective updates without full re-resolution, \`--no-strip-extras\` preserves extras markers, and \`uv pip sync\` strictly enforces the lockfile \(unlike \`pip install -r\` which leaves orphans\). This eliminates 'works on my machine' due to transitive dependency drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:51:51.158110+00:00— report_created — created