{
  "id": "pip/no-binary-available-for-platform",
  "signature": "ERROR: Could not find a version that satisfies the requirement <package> (from versions: none). No matching distribution found (no binary available for this platform)",
  "signature_zh": "错误：找不到满足 <package> 要求的版本（来自版本：无）。未找到匹配的发行版（此平台没有可用的二进制文件）",
  "regex": "No matching distribution found \\(no binary available for this platform\\)",
  "domain": "pip",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The requested package has no pre-built wheel for the user's platform (e.g., aarch64, 32-bit, or unsupported OS), and pip cannot build from source due to missing build dependencies or platform incompatibility.",
  "root_cause_type": "generic",
  "root_cause_zh": "请求的包没有针对用户平台（例如 aarch64、32 位或不支持的操作系统）的预构建 wheel，并且由于缺少构建依赖项或平台不兼容，pip 无法从源代码构建。",
  "versions": [
    {
      "version": "pip 22.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Python 3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "aarch64",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using --only-binary=:all: flag",
      "why_fails": "This flag forces pip to only use binary wheels, but if none exist for the platform, it will fail immediately with the same error.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Installing with --no-index and pointing to a local directory with wrong wheels",
      "why_fails": "Providing wheels built for a different architecture (e.g., x86_64 on arm64) will cause incompatible binary errors or segfaults at runtime.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Downgrading pip to an older version",
      "why_fails": "Older pip versions have the same or worse platform detection; the issue is with the package availability, not pip version.",
      "fail_rate": 0.2,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Enable pip to build from source by installing build dependencies: pip install <package> --no-binary :all:",
      "success_rate": 0.75,
      "how": "Enable pip to build from source by installing build dependencies: pip install <package> --no-binary :all:",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a third-party repository that provides wheels for your platform (e.g., conda-forge for aarch64): conda install -c conda-forge <package>",
      "success_rate": 0.85,
      "how": "Use a third-party repository that provides wheels for your platform (e.g., conda-forge for aarch64): conda install -c conda-forge <package>",
      "condition": "",
      "sources": []
    },
    {
      "action": "Cross-compile the wheel on a compatible machine and transfer it: pip wheel <package> --wheel-dir=./wheels/ && pip install --no-index --find-links=./wheels/ <package>",
      "success_rate": 0.8,
      "how": "Cross-compile the wheel on a compatible machine and transfer it: pip wheel <package> --wheel-dir=./wheels/ && pip install --no-index --find-links=./wheels/ <package>",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "通过安装构建依赖项允许 pip 从源代码构建：pip install <package> --no-binary :all:",
    "使用为你的平台提供 wheel 的第三方仓库（例如 conda-forge 用于 aarch64）：conda install -c conda-forge <package>",
    "在兼容的机器上交叉编译 wheel 并传输：pip wheel <package> --wheel-dir=./wheels/ && pip install --no-index --find-links=./wheels/ <package>"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pip.pypa.io/en/stable/topics/platform-compatibility/",
  "official_doc_section": null,
  "error_code": "ERROR",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}