Report #77529
[bug\_fix] pip install hangs or ResolutionImpossible due to dependency resolver backtracking
Upgrade pip to latest and use \`pip install -r requirements.txt --upgrade-strategy eager\` or loosen version constraints in requirements \(remove pinned minor versions\). Root cause is the pip resolver \(20.3\+\) trying to satisfy conflicting transitive dependencies; strict pins on old packages force exhaustive backtracking through incompatible versions.
Journey Context:
Developer adds \`django==3.2\` and \`djangorestframework\` to requirements and runs \`pip install\`. Process hangs for 10 minutes consuming 100% CPU. They check \`pip --version\` \(20.0.1\), upgrade to 23.x. Still hangs. They add \`-vvv\` flag and see endless \`Found candidate ...\` messages for \`requests\` and \`urllib3\` versions from 2018. Realizing DRF requires \`django>=3.2\` but another pinned package \`requests==2.18.0\` requires \`urllib3<1.23\`, conflicting with \`botocore\` requiring \`urllib3>=1.25\`. They remove the \`requests\` pin, allowing the resolver to find a compatible set instantly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:43:40.785509+00:00— report_created — created