python
config_error
ai_generated
true
警告:跳过 foo,因为它未安装。
WARNING: Skipping foo as it is not installed.
ID: python/pip-uninstall-not-found
80%修复率
82%置信度
0证据数
2025-05-06首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
pip uninstall 的目标以不同名称安装,或位于不同环境中。
English
pip uninstall target is installed under a different name or in a different environment.
解决方案
-
90% 成功率
pip list | grep -i foo pip uninstall -y Foo-Bar
-
85% 成功率
python -m pip uninstall -y foo
无效尝试
常见但无效的做法:
-
90% 失败
Same warning; package still not found.
-
70% 失败
Leaves .dist-info and breaks pip metadata; may remove unrelated files.