# 警告：跳过 mypkg，因为它未安装。
错误：无法卸载 'mypkg'。它是一个 distutils 安装的项目，因此我们无法准确确定哪些文件属于它，这会导致只能部分卸载。

- **ID:** `python/pip-uninstall-no-files-were-found`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

该包由 distutils 安装（例如通过 setup.py install 或操作系统包），没有 RECORD 文件，因此 pip 无法枚举要删除的文件。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (85% 成功率)
   ```
   python -c "import mypkg, os; print(os.path.dirname(mypkg.__file__))"
rm -rf /path/to/mypkg /path/to/mypkg-*.egg-info
   ```
2. **** (90% 成功率)
   ```
   sudo apt remove python3-mypkg
   ```

## 无效尝试

- **** — The -y flag suppresses the prompt but the distutils detection still aborts. (90% 失败率)
- **** — Force reinstall may leave the distutils-installed files behind, so uninstall still cannot find them. (60% 失败率)
- **** — --break-system-packages is for installs, not for distutils uninstall detection. (85% 失败率)
