Report #71119
[bug\_fix] pip install hangs then fails with ResolutionImpossible or backtracking for minutes
Upgrade pip to the latest version \('pip install -U pip'\) to utilize the most efficient resolver improvements. Then, loosen version constraints in your requirements or use a constraints file \('-c constraints.txt'\) to force compatible versions of transitive dependencies.
Journey Context:
Developer adds a new dependency 'package-b>=2.0' to requirements.txt which already pins 'package-a==1.0'. Running 'pip install -r requirements.txt' causes pip to consume 100% CPU for several minutes, printing messages like 'INFO: pip is looking at multiple versions of package-c to determine which version is compatible with other requirements'. Eventually it fails with 'ResolutionImpossible' stating that 'package-a==1.0' requires 'requests<2.25' while 'package-b>=2.0' requires 'requests>=2.25'. The root cause is that pip 20.3\+ uses a strict dependency resolver that refuses to install conflicting dependency versions \(unlike the legacy resolver which would silently install the last requirement\). The backtracking attempts to find a version of 'package-c' that satisfies all constraints, but if the conflict is direct and unavoidable, resolution fails.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:57:15.252471+00:00— report_created — created