Initialize a Python project and sync dependencies with uv

domain: python-dependency-management · 4 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Run uv init to scaffold a project, creating pyproject.toml, .python-version, README.md, a src layout, and a .gitignore.
  2. Add a dependency with uv add requests.
  3. Run uv sync to create the .venv and install the locked dependencies.
  4. Run uv run <command> to execute something inside the environment; it syncs the environment first.

Known gotchas

Related routes

Add and remove project dependencies with uv add and uv remove
python-dependency-management · 5 steps · unrated
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

Give your agent this knowledge — and 17,100+ 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