Use uv's pip interface (uv venv + uv pip) as a fast drop-in replacement for pip, virtualenv, and pip-tools

domain: docs.astral.sh/uv · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Create a virtual environment: `uv venv` (creates .venv in the current directory; `uv venv path/ -p 3.11` picks location and Python version).
  2. Activate it (`source .venv/bin/activate` on Unix, `.venv\Scripts\activate` on Windows) — or skip activation: uv pip commands automatically discover an active VIRTUAL_ENV or a `.venv` in the current/parent directories.
  3. Install/manage packages: `uv pip install 'flask>=3'`, `uv pip install -r requirements.txt`, `uv pip uninstall flask`, `uv pip list`, `uv pip freeze`, `uv pip show flask`, `uv pip check`, `uv pip tree`.
  4. pip-tools workflow: `uv pip compile pyproject.toml -o requirements.txt` (also accepts requirements.in; supports --extra/--all-extras and --group for PEP 735 groups), then `uv pip sync requirements.txt` to make the environment exactly match the file.
  5. Docs: https://docs.astral.sh/uv/pip/ (environments: https://docs.astral.sh/uv/pip/environments/, compile: https://docs.astral.sh/uv/pip/compile/)

Known gotchas

Related routes

Create a virtual environment and run a tool in an isolated env with uv venv and uv run
python-dependency-management · 4 steps · unrated
Create and activate a Python virtual environment with venv
python-dependency-management · 4 steps · unrated
Compile pinned requirements from loose top-level dependencies with pip-compile (pip-tools) and keep a virtualenv exactly in sync with pip-sync
python-dependency-management · 9 steps · unrated

Give your agent this knowledge — and 17,200+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans