{
  "id": "python/pip-editable-install-missing-pyproject",
  "signature": "ERROR: File \"setup.py\" not found. Cannot perform editable install without a build backend.",
  "signature_zh": "错误：找不到文件 \"setup.py\"。没有构建后端时无法执行可编辑安装。",
  "regex": "ERROR:\\ File\\ \"setup\\.py\"\\ not\\ found\\.\\ Cannot\\ perform\\ editable\\ install\\ without\\ a\\ build\\ backend\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "pip install -e . requires either setup.py or a [build-system] table in pyproject.toml to define an editable-capable backend.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip install -e . 需要 setup.py 或 pyproject.toml 中的 [build-system] 表来定义支持可编辑安装的后端。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "An empty setup.py declares no package metadata, so the editable install produces no importable package.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Disabling isolation does not provide a build backend; the error persists.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Installs a copy, so source edits are not reflected, defeating the purpose of -e.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Add a build-system table to pyproject.toml: [build-system]\\nrequires = [\"setuptools>=61\", \"wheel\"]\\nbuild-backend = \"setuptools.build_meta\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use a hatchling backend for pure-Python projects: [build-system]\\nrequires = [\"hatchling\"]\\nbuild-backend = \"hatchling.build\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.92,
      "how": "Migrate to a PEP 621 [project] table and re-run pip install -e .",
      "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-08-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}