{
  "id": "python/pip-invalid-requirement-parse-error",
  "signature": "ERROR: Invalid requirement: 'package>=1.0,<2.0' (from line 1 of requirements.txt) - Expected end or semicolon",
  "signature_zh": "错误：无效的需求：'package>=1.0,<2.0'（来自requirements.txt第1行）- 预期结束或分号",
  "regex": "ERROR:\\ Invalid\\ requirement:\\ 'package>=1\\.0,<2\\.0'\\ \\(from\\ line\\ 1\\ of\\ requirements\\.txt\\)\\ \\-\\ Expected\\ end\\ or\\ semicolon",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The requirement string contains a comma-separated version specifier without proper spacing or a malformed operator, causing the parser to fail.",
  "root_cause_type": "generic",
  "root_cause_zh": "需求字符串包含逗号分隔的版本说明符，但缺少正确空格或运算符格式错误，导致解析失败。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Invalid syntax; pip requires comma or space between specifiers.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Quotes don't fix the parser error; it's about the specifier format.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Pip aborts the entire installation.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Rewrite as 'package>=1.0, <2.0' (with space after comma) or 'package>=1.0,<2.0' (no space but valid)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "sed -i 's/>=1.0,<2.0/>=1.0,<2.0/' requirements.txt && pip install -r requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Create constraints.txt with 'package>=1.0,<2.0' and use pip install -c constraints.txt",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}