Pin dependency versions and constrain them with pip constraints files

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

Documented steps

  1. Pin exact versions inline, for example python -m pip install requests==2.32.3, or with a range such as requests>=2.31,<3.
  2. Apply global version ceilings with a constraints file via python -m pip install -c constraints.txt <package>.
  3. For highly repeatable installs add --require-hashes, which is implied automatically once a hash is present in the requirements file.

Known gotchas

Related routes

Configure Dependabot to group related dependency updates into a single pull request using groups in dependabot.yml
docs.github.com · 5 steps · unrated
Force a transitive dependency to a specific version with pnpm overrides
pnpm.io · 6 steps · unrated
Share dependency versions across a pnpm monorepo with catalogs and the catalog: protocol
pnpm.io · 6 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