{
  "id": "python/pip-editable-install-fails-pep660",
  "signature": "ERROR: File \"/tmp/pip-build-env-xxxx/overlay/lib/python3.11/site-packages/setuptools/build_meta.py\", line 435, in get_requires_for_build_editable\n    raise NotImplementedError(\"editable installs are not supported by this backend\")",
  "signature_zh": "错误：文件 \"/tmp/pip-build-env-xxxx/overlay/lib/python3.11/site-packages/setuptools/build_meta.py\"，第 435 行，在 get_requires_for_build_editable 中\n    raise NotImplementedError(\"此构建后端不支持可编辑安装\")",
  "regex": "ERROR:\\ File\\ \"/tmp/pip\\-build\\-env\\-xxxx/overlay/lib/python3\\.11/site\\-packages/setuptools/build_meta\\.py\",\\ line\\ 435,\\ in\\ get_requires_for_build_editable\\\n\\ \\ \\ \\ raise\\ NotImplementedError\\(\"editable\\ installs\\ are\\ not\\ supported\\ by\\ this\\ backend\"\\)",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "`pip install -e .` uses PEP 660 editable wheels, but the project's build backend (or an old setuptools) does not implement `build_editable`.",
  "root_cause_type": "generic",
  "root_cause_zh": "`pip install -e .` 使用 PEP 660 可编辑 wheel，但项目的构建后端（或旧版 setuptools）未实现 `build_editable`。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Still calls the backend's build_editable hook, which is unimplemented.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "PEP 517 is already the default; the hook is missing regardless.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Upgrade setuptools so PEP 660 is supported: `pip install --upgrade 'setuptools>=64'`, then `pip install -e .`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.75,
      "how": "Fall back to legacy editable: `pip install -e . --config-settings editable_mode=compat` (setuptools) or switch the backend to one that supports PEP 660.",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}