Report #52325
[bug\_fix] pip install fails with ResolutionImpossible or infinite backtracking during dependency resolution
Constrain the problematic transitive dependency to a compatible version in your requirements \(e.g., \`requests>=2.25,<3.0\`\) to help the resolver find a solution, or use a lockfile generator like \`pip-compile\` or \`poetry\` to resolve the dependency tree offline.
Journey Context:
Developer adds \`django==4.0\` and \`graphene-django==3.0\` to \`requirements.txt\`. Running \`pip install -r requirements.txt\` starts backtracking extensively, trying every version of \`graphql-core\` from 3.2.0 down to 2.0.0, then fails with \`ResolutionImpossible\` citing conflicts between \`graphql-core<3\` required by an old version of \`graphene-django\` and \`graphql-core>=3.2\` required by \`django\` indirect dependency. Developer examines the error message which helpfully lists the conflicting requirements. Developer manually pins \`graphql-core==3.2.0\` in \`requirements.txt\` and adds \`--no-deps\` temporarily to see what breaks, then adjusts pins. Eventually uses \`pip-compile\` to generate a locked \`requirements.txt\` that satisfies all constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:19:16.826660+00:00— report_created — created