python
system_error
ai_generated
true
错误:找到多个 .dist-info 目录:/path/lib/python3.9/site-packages/pkg-1.0.dist-info, /path/lib/python3.9/site-packages/pkg-1.1.dist-info
error: Multiple .dist-info directories found: /path/lib/python3.9/site-packages/pkg-1.0.dist-info, /path/lib/python3.9/site-packages/pkg-1.1.dist-info
ID: python/setuptools-unknown-dist-info
80%修复率
85%置信度
0证据数
2024-01-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.6 | active | — | — | — |
| 3.7 | active | — | — | — |
| 3.8 | active | — | — | — |
根因分析
由于卸载不当或强制安装,同一环境中安装了同一包的两个版本。
English
Two versions of the same package are installed in the same environment due to improper uninstallation or forced installs.
解决方案
-
90% 成功率
pip uninstall -y pkg && pip install pkg
-
85% 成功率
pip install --upgrade --force-reinstall --no-deps pkg
无效尝试
常见但无效的做法:
-
60% 失败
May leave orphaned files and break package metadata; pip may still detect inconsistencies.
-
50% 失败
Overwrites but may not clean up old directories, leaving duplicates.