Report #91680
[tooling] How to install Python dependencies 10-100x faster than pip in CI or local development?
Replace \`pip install\` with \`uv pip install -r requirements.txt\`; for Docker, use \`RUN --mount=type=cache,target=/root/.cache/uv uv pip install ...\` to persist the global cache between builds. Use \`uv venv\` to create virtualenvs instantly without seeding pip.
Journey Context:
pip is slow due to Python-based resolution, sequential downloads, and lack of a persistent global cache. \`uv\` \(Rust-based\) is a drop-in replacement for \`pip\` and \`virtualenv\`, using a content-addressable global cache and parallelized resolution. The critical insight for CI: uv's speed comes from its cache; without the Docker cache mount targeting \`/root/.cache/uv\`, every build re-downloads. Also, \`uv venv\` does not install pip/wheel/setuptools by default \(unless \`--seed\`\), making it instant—use \`uv pip\` inside it, not the missing pip.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:28:34.294108+00:00— report_created — created