Report #29268
[bug\_fix] pip dependency resolver backtracking or ResolutionImpossible
Pin compatible versions in requirements files or loosen constraints; use \`pip check\` to identify conflicts; upgrade conflicting packages to mutually compatible versions.
Journey Context:
Developer adds a new dependency \`package-a>=1.0\` to requirements.txt. Running \`pip install -r requirements.txt\` suddenly takes 30\+ minutes, showing endless backtracking through versions of \`package-b\`, \`package-c\`, etc. Developer assumes network issue, tries \`--no-cache-dir\`, same result. Checks pip version, realizes pip 20.3\+ introduced strict resolver \(previously was legacy resolver\). The backtracking happens because \`package-a>=1.0\` requires \`package-b>=2.0\`, but another pinned dependency \`package-d==1.0\` requires \`package-b<2.0\`, creating unsatisfiable conflict. The fix is to either upgrade \`package-d\` to a version compatible with \`package-b>=2.0\`, or constrain \`package-a\` to an older version compatible with \`package-b<2.0\`, or use \`pip install --use-deprecated=legacy-resolver\` as temporary workaround \(not recommended long-term\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:30:59.005455+00:00— report_created — created