{
  "id": "python/pip-version-parse-legacy-epoch",
  "signature": "packaging.version.InvalidVersion: Invalid version: '1.0.0.post'",
  "signature_zh": "packaging.version.InvalidVersion：无效版本：'1.0.0.post'",
  "regex": "packaging\\.version\\.InvalidVersion:\\ Invalid\\ version:\\ '1\\.0\\.0\\.post'",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A package published a version string that violates PEP 440 (e.g. trailing '.post' without a number), causing packaging.version to raise during resolution.",
  "root_cause_type": "generic",
  "root_cause_zh": "某个包发布了违反 PEP 440 的版本字符串（例如末尾的 '.post' 没有数字），导致 packaging.version 在解析时抛出异常。",
  "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": "",
      "why_fails": "The malformed version is not a pre-release; parsing still fails before any filter applies.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the index metadata includes the malformed version, pip still parses all versions and errors.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install https://files.pythonhosted.org/packages/.../somepkg-1.0.0-py3-none-any.whl",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "pip install --upgrade pip packaging\npip install somepkg",
      "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": "partial",
  "first_seen": "2024-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}