python
install_error
ai_generated
partial
ERROR: Cannot install package-a==1.0 and package-b==2.0 because these package versions have conflicting dependencies.
ID: python/pip-legacy-resolver-conflict
80%Fix Rate
89%Confidence
0Evidence
2024-02-08First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.7-3.12 | active | — | — | — |
Root Cause
The new pip resolver detects dependency conflicts that the legacy resolver silently ignored, resulting in broken environments.
generic中文
新版 pip 解析器检测到旧版解析器会静默忽略的依赖冲突,导致环境损坏。
Workarounds
-
85% success
pip install 'package-a<2' 'package-b<2' # after checking compatibility on PyPI
-
88% success
pip install pip-tools && pip-compile requirements.in && pip-sync requirements.txt
Dead Ends
Common approaches that don't work:
-
75% fail
Bypasses safety checks, resulting in an inconsistent environment with subtly broken imports at runtime.
-
90% fail
Does not resolve the underlying version incompatibility between the two packages.