Report #11397
[bug\_fix] pip install hangs indefinitely or fails with 'ResolutionImpossible' citing package conflicts
Identify and resolve the version conflict by constraining the dependency tree: either upgrade/downgrade the conflicting package to a mutually compatible version, or use 'pip install --constraint constraints.txt' to guide the resolver, or use a tool like 'pip-tools' or 'poetry' to lock compatible versions.
Journey Context:
Developer inherits a project with a large requirements.txt. They try to add 'django-cms' to it. Running 'pip install -r requirements.txt' on a fresh venv, pip starts backtracking: 'Collecting django<4.0,>=3.2', then 'Collecting django<3.3', slowly trying older versions. After 15 minutes it fails with 'ResolutionImpossible' citing that 'django-cms 3.11.0 requires django<4.0,>=3.2', but 'django 3.2.0 requires asgiref<4.0,>=3.3.2', while the existing requirements.txt pins 'asgiref==3.2.0'. The developer realizes the strict pin on asgiref is the conflict. They update asgiref to a 3.x version in the requirements, or use a separate constraints file to force the resolver to skip invalid combinations. They learn that 'pip install django-cms' without version pins in a clean venv works instantly because there's no legacy constraints forcing backtracking.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:15:23.036389+00:00— report_created — created