{
  "id": "python/pip-unsupported-format-version",
  "signature": "ERROR: pip._vendor.packaging.requirements.InvalidRequirement: Expected ',' or end of string, got ';' in requirement 'numpy; python_version<\"3.8\"'",
  "signature_zh": "错误：pip._vendor.packaging.requirements.InvalidRequirement：预期 ',' 或字符串结尾，但需求 'numpy; python_version<\"3.8\"' 中出现了 ';'",
  "regex": "ERROR:\\ pip\\._vendor\\.packaging\\.requirements\\.InvalidRequirement:\\ Expected\\ ','\\ or\\ end\\ of\\ string,\\ got\\ ';'\\ in\\ requirement\\ 'numpy;\\ python_version<\"3\\.8\"'",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The requirement string uses a semicolon for environment markers, but the syntax is incorrect or the packaging version is too old.",
  "root_cause_type": "generic",
  "root_cause_zh": "需求字符串使用分号表示环境标记，但语法错误或 packaging 版本太旧。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing the semicolon and marker entirely",
      "why_fails": "Loses conditional installation logic.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using double quotes inside the marker",
      "why_fails": "Syntax remains invalid; markers require proper quoting.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use proper syntax with environment markers",
      "success_rate": 0.95,
      "how": "Write: 'numpy; python_version < \"3.8\"' (note space after semicolon and proper quoting).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Upgrade packaging to support modern syntax",
      "success_rate": 0.9,
      "how": "Run: pip install --upgrade packaging",
      "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-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}