{
  "id": "python/pip-build-isolation-conflict",
  "signature": "ERROR: Cannot import 'setuptools.build_meta' when build isolation is disabled because setuptools is not installed in the current environment.",
  "signature_zh": "错误：禁用构建隔离时无法导入 'setuptools.build_meta'，因为当前环境中未安装 setuptools。",
  "regex": "ERROR:\\ Cannot\\ import\\ 'setuptools\\.build_meta'\\ when\\ build\\ isolation\\ is\\ disabled\\ because\\ setuptools\\ is\\ not\\ installed\\ in\\ the\\ current\\ environment\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Using `--no-build-isolation` requires the build backend (setuptools, wheel, etc.) to already be installed in the active environment.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用 `--no-build-isolation` 要求构建后端（setuptools、wheel 等）已安装在当前活动环境中。",
  "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"
    },
    {
      "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": "pip is separate from the build backend; reinstalling it does not add setuptools.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The same missing backend error recurs deterministically.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Force-reinstall affects the target package, not build-time imports.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install --upgrade setuptools wheel && pip install --no-build-isolation <package>",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip install <package>  # drop --no-build-isolation",
      "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-03-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}