{
  "id": "python/pip-uninstall-no-files-were-found",
  "signature": "WARNING: Skipping mypkg as it is not installed.\nERROR: 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.",
  "signature_zh": "警告：跳过 mypkg，因为它未安装。\n错误：无法卸载 'mypkg'。它是一个 distutils 安装的项目，因此我们无法准确确定哪些文件属于它，这会导致只能部分卸载。",
  "regex": "WARNING:\\ Skipping\\ mypkg\\ as\\ it\\ is\\ not\\ installed\\.\\\nERROR:\\ 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\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "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.",
  "root_cause_type": "generic",
  "root_cause_zh": "该包由 distutils 安装（例如通过 setup.py install 或操作系统包），没有 RECORD 文件，因此 pip 无法枚举要删除的文件。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The -y flag suppresses the prompt but the distutils detection still aborts.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Force reinstall may leave the distutils-installed files behind, so uninstall still cannot find them.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "--break-system-packages is for installs, not for distutils uninstall detection.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "python -c \"import mypkg, os; print(os.path.dirname(mypkg.__file__))\"\nrm -rf /path/to/mypkg /path/to/mypkg-*.egg-info",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "sudo apt remove python3-mypkg",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-04-23",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}