{
  "id": "python/pip-egg-link-corrupt",
  "signature": "ERROR: Error in sitecustomize; set PYTHONVERBOSE for traceback: ModuleNotFoundError: No module named 'setuptools'",
  "signature_zh": "错误：sitecustomize出错；设置PYTHONVERBOSE以获取回溯：ModuleNotFoundError：没有名为'setuptools'的模块",
  "regex": "ERROR:\\ Error\\ in\\ sitecustomize;\\ set\\ PYTHONVERBOSE\\ for\\ traceback:\\ ModuleNotFoundError:\\ No\\ module\\ named\\ 'setuptools'",
  "domain": "python",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "The setuptools package is missing or its .egg-link file is corrupted, often due to a partial install or manual deletion.",
  "root_cause_type": "generic",
  "root_cause_zh": "setuptools包缺失或其.egg-link文件损坏，通常由于部分安装或手动删除。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Pip itself may depend on setuptools.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May have incorrect path or permissions.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Many packages will fail to import.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "python -m ensurepip --upgrade",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "wget https://bootstrap.pypa.io/ez_setup.py -O - | python",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "python -m venv venv && source venv/bin/activate && pip install setuptools",
      "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": "true",
  "first_seen": "2025-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}