Report #99206
[tooling] Python environment setup is slow, unreproducible, or breaks across machines
Use \`uv pip compile requirements.in -o requirements.txt\` to lock dependencies, \`uv pip install -r requirements.txt\` to install fast, and \`uv run \` to run code with the right interpreter without manual venv activation. Pin uv in CI with the official install script.
Journey Context:
\`pip install -r requirements.txt\` resolves on every install, so CI drift is real. \`uv\` is a drop-in, Rust-based replacement that resolves and installs an order of magnitude faster and supports lockfiles via \`pip compile\`. It caches wheels aggressively and avoids partial installs. \`uv sync\` with \`pyproject.toml\` is even better for projects. The mistake is mixing pip and uv in the same environment; pick one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:45:02.423346+00:00— report_created — created