{
  "id": "python/pip-unsupported-package-format",
  "signature": "ERROR: pip._vendor.packaging.utils.InvalidWheelName: Invalid wheel filename: mypackage-1.0.0-py3-none-any.whl (missing platform tag)",
  "signature_zh": "错误：pip._vendor.packaging.utils.InvalidWheelName：无效的 wheel 文件名：mypackage-1.0.0-py3-none-any.whl（缺少平台标签）",
  "regex": "ERROR:\\ pip\\._vendor\\.packaging\\.utils\\.InvalidWheelName:\\ Invalid\\ wheel\\ filename:\\ mypackage\\-1\\.0\\.0\\-py3\\-none\\-any\\.whl\\ \\(missing\\ platform\\ tag\\)",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The wheel filename does not conform to PEP 427 naming convention, e.g., missing or malformed tags.",
  "root_cause_type": "generic",
  "root_cause_zh": "wheel 文件名不符合 PEP 427 命名约定，例如缺少或格式错误的标签。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Renaming the file to remove the platform tag",
      "why_fails": "Makes the filename even more invalid.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a different compression format like tar.gz",
      "why_fails": "Pip expects .whl files for wheels.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Rename the wheel file correctly",
      "success_rate": 0.85,
      "how": "Ensure filename is like 'mypackage-1.0.0-py3-none-any.whl' (correct: mypackage-1.0.0-py3-none-any.whl is actually valid; the error is about missing platform tag, but 'any' is a valid platform. If error persists, check tags.)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Rebuild the wheel with proper metadata",
      "success_rate": 0.95,
      "how": "Run: python setup.py bdist_wheel (ensures correct naming).",
      "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": "2025-09-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}