# 错误：找到多个 .dist-info 目录：/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`
- **领域:** python
- **类别:** system_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

由于卸载不当或强制安装，同一环境中安装了同一包的两个版本。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.6 | active | — | — |
| 3.7 | active | — | — |
| 3.8 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   pip uninstall -y pkg && pip install pkg
   ```
2. **** (85% 成功率)
   ```
   pip install --upgrade --force-reinstall --no-deps pkg
   ```

## 无效尝试

- **** — May leave orphaned files and break package metadata; pip may still detect inconsistencies. (60% 失败率)
- **** — Overwrites but may not clean up old directories, leaving duplicates. (50% 失败率)
