Report #14957
[bug\_fix] pip.\_vendor.resolvelib.resolvers.ResolutionTooDeep: Exceeded maximum number of rounds
Upgrade pip to the latest version \(\`pip install -U pip\`\) and provide explicit version constraints for the conflicting transitive dependencies in a constraints file \(\`-c constraints.txt\`\). The resolver backtracks because of incompatible version requirements \(e.g., package A requires \`requests>=2.25\`, package B requires \`requests<2.0\`\); constraining \`requests==2.28.1\` eliminates the ambiguity.
Journey Context:
Your CI pipeline starts failing on \`pip install -r requirements.txt\` despite no code changes. The job hangs for 10 minutes then dies with \`ResolutionTooDeep\` or thousands of lines collecting older versions of \`boto3\` and \`urllib3\`. You recently added \`new-lib\` which pins \`urllib3<1.25\`, while \`requests\` requires \`urllib3>=1.26\`. The resolver tries every historical version of \`requests\` and \`urllib3\` to find a valid combination, exploding the search space. Old pip would have installed conflicting versions silently; the new strict resolver correctly fails but backtracks excessively.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:49:25.867823+00:00— report_created — created