Report #38872
[bug\_fix] pip install hangs at 'Resolving dependencies...' or fails with ResolutionImpossible
Manually resolve the version conflict by inspecting the error output to identify incompatible top-level packages, then update \`requirements.txt\` to specify compatible versions \(e.g., relax or tighten pins\). Use \`pip-tools\` or \`poetry\` for constraint management. As a temporary workaround only, use \`--use-deprecated=legacy-resolver\` on older pip versions to bypass strict resolution \(not recommended for production\).
Journey Context:
A developer adds \`django==3.2\` to a requirements file containing \`djangorestframework\` \(unpinned\). The pip resolver \(20.3\+\) starts backtracking. Latest DRF requires Django>=4.0, conflicting with 3.2. Pip tries older DRF versions; each has different Django bounds. This exponential backtracking consumes CPU and time. Eventually pip outputs a massive dependency tree showing \`The conflict is caused by: django 3.2 depends on asgiref<4,>=3.3.2; djangorestframework 3.12 depends on django>=2.2 but django 3.2 ...\`. The developer realizes the constraints are mutually exclusive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:43:21.506383+00:00— report_created — created