{
  "id": "python/pip-invalid-wheel-name",
  "signature": "ERROR: mypackage-1.0-py3-none-any.whl is not a valid wheel filename.",
  "signature_zh": "错误：mypackage-1.0-py3-none-any.whl 不是有效的 wheel 文件名。",
  "regex": "ERROR:\\ mypackage\\-1\\.0\\-py3\\-none\\-any\\.whl\\ is\\ not\\ a\\ valid\\ wheel\\ filename\\.",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The wheel file name does not follow the PEP 427 naming convention, often due to incorrect versioning or platform tags.",
  "root_cause_type": "generic",
  "root_cause_zh": "wheel 文件名不符合 PEP 427 命名约定，通常是由于版本或平台标签不正确。",
  "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": "Renaming the file to a random name",
      "why_fails": "pip validates the structure; a random name will still fail.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using --no-index flag",
      "why_fails": "This does not bypass filename validation.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Rebuild the wheel with correct naming",
      "success_rate": 0.9,
      "how": "python setup.py bdist_wheel --universal",
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually correct the filename per PEP 427",
      "success_rate": 0.85,
      "how": "Rename to 'mypackage-1.0.0-py3-none-any.whl' (ensure version is in X.Y.Z format)",
      "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-11-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}