{
  "id": "python/setuptools-no-module-named-setuptools",
  "signature": "ModuleNotFoundError: No module named 'setuptools'",
  "signature_zh": "ModuleNotFoundError：没有名为 'setuptools' 的模块",
  "regex": "ModuleNotFoundError:\\ No\\ module\\ named\\ 'setuptools'",
  "domain": "python",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "setuptools is not installed in the current Python environment.",
  "root_cause_type": "generic",
  "root_cause_zh": "当前 Python 环境中未安装 setuptools。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Installing setuptools with pip",
      "why_fails": "May fail if pip is also missing.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using easy_install",
      "why_fails": "Deprecated and may not work.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install setuptools via ensurepip",
      "success_rate": 0.9,
      "how": "python -m ensurepip --upgrade",
      "condition": "",
      "sources": []
    },
    {
      "action": "Install from source",
      "success_rate": 0.8,
      "how": "curl -O https://bootstrap.pypa.io/ez_setup.py && python ez_setup.py",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-11-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}