# WARNING: Skipping mypkg as it is not installed.
ERROR: Cannot uninstall 'mypkg'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

- **ID:** `python/pip-uninstall-no-files-were-found`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The package was installed by distutils (e.g., via setup.py install or an OS package) without a RECORD file, so pip cannot enumerate the files to remove.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

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

## Dead Ends

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