{
  "id": "python/pip-install-error-could-not-build-wheels",
  "signature": "ERROR: Could not build wheels for package, which is required to install pyproject.toml-based projects",
  "signature_zh": "错误：无法为 package 构建 wheel，这是安装基于 pyproject.toml 的项目所必需的",
  "regex": "ERROR:\\ Could\\ not\\ build\\ wheels\\ for\\ package,\\ which\\ is\\ required\\ to\\ install\\ pyproject\\.toml\\-based\\ projects",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The package uses a pyproject.toml build system and pip failed to build a wheel, often due to missing build dependencies or compiler errors.",
  "root_cause_type": "generic",
  "root_cause_zh": "该包使用 pyproject.toml 构建系统，pip 无法构建 wheel，通常是由于缺少构建依赖或编译错误。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This can help but often fails if build dependencies are not already installed.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The underlying build issue persists on retry.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Permissions are not the root cause; the build still fails.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "sudo apt-get install build-essential python3-dev",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install --upgrade pip setuptools wheel",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "pip install package --only-binary :all:",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}