{
  "id": "python/pip-uninstall-script-not-found",
  "signature": "ERROR: Cannot uninstall 'package'. 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": "错误：无法卸载 'package'。它是 distutils 安装的项目，因此我们无法准确确定哪些文件属于它，这会导致仅部分卸载。",
  "regex": "ERROR:\\ Cannot\\ uninstall\\ 'package'\\.\\ 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 via distutils (e.g., apt, system Python, or an old setup.py install) without a RECORD file, so pip cannot enumerate its files for safe removal.",
  "root_cause_type": "generic",
  "root_cause_zh": "该包通过 distutils 安装（如 apt、系统 Python 或旧的 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": "-y skips the confirmation prompt but does not bypass the distutils detection.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Force-reinstall may leave the old distutils files in place, causing version conflicts.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Manual deletion misses .dist-info, .pth, and console scripts, leaving a broken environment.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Remove via the distro package manager: sudo apt remove python3-package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.75,
      "how": "List files and remove them: pip show -f package && rm -rf $(pip show -f package | awk '/Location:/{print $2}')/package*",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.92,
      "how": "Create a fresh venv and reinstall the correct version: python -m venv .venv && . .venv/bin/activate && pip install package",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2025-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}