python
config_error
ai_generated
true
Requirement already satisfied: foo in /usr/local/lib/python3.11/site-packages (1.0.0) but you have foo 2.0.0
ID: python/pip-requirement-already-satisfied-but-not-installed
80%Fix Rate
87%Confidence
0Evidence
2024-02-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
Root Cause
Multiple installations of the same package, often due to user vs system site-packages conflicts.
generic中文
同一包有多个安装,通常由于用户与系统 site-packages 冲突。
Workarounds
-
90% success
Check `pip list` and `python -m pip list` to see which pip is used; ensure you're using the correct environment.
-
85% success
Use `pip install --force-reinstall foo` or uninstall all copies: `pip uninstall foo -y && pip install foo`.
Dead Ends
Common approaches that don't work:
-
60% fail
May not resolve the conflict if multiple installations exist.
-
50% fail
May leave stale files or not remove all copies.