Report #65914
[tooling] Generating deterministic Python lockfiles and installing them faster than pip-tools
Use \`uv pip compile requirements.in -o requirements.txt\` to generate a locked resolve, then \`uv pip sync requirements.txt\` to install exactly those versions \(removing extraneous packages\). Use \`--python\` to target specific interpreters.
Journey Context:
\`pip freeze\` captures installed versions but doesn't resolve dependencies deterministically. \`pip-compile\` from pip-tools is the old standard but slow. \`uv\` replaces both with a Rust-backed resolver that is 10-100x faster. \`sync\` vs \`install\` is crucial: sync ensures hermeticity by uninstalling packages not in the lockfile, preventing drift in containers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:07:17.501826+00:00— report_created — created