{
  "id": "python/pip-download-error-invalid-wheel-filename",
  "signature": "ERROR: Invalid wheel filename (wrong number of parts): 'foo-1.0-py3-none-any.whl.whl'",
  "signature_zh": "错误：无效的 wheel 文件名（部分数量错误）：'foo-1.0-py3-none-any.whl.whl'",
  "regex": "ERROR:\\ Invalid\\ wheel\\ filename\\ \\(wrong\\ number\\ of\\ parts\\):\\ 'foo\\-1\\.0\\-py3\\-none\\-any\\.whl\\.whl'",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A wheel file has an incorrect filename, often due to a double extension or malformed name. This can happen when downloading manually or from a misconfigured index.",
  "root_cause_type": "generic",
  "root_cause_zh": "wheel 文件名不正确，通常是由于双重扩展名或格式错误。手动下载或从配置错误的索引下载时可能发生。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the file content is also corrupted, renaming won't help.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Doesn't address the invalid filename; pip still rejects it.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Re-download the wheel from PyPI using pip download: pip download <package> -d ./wheels.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.98,
      "how": "Install directly from PyPI instead of a local file: pip install <package>.",
      "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-04-25",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}