{
  "id": "python/invalid-requirement-parse",
  "signature": "ERROR: Invalid requirement: 'requests=>2.0' (from line 1 of requirements.txt)\nHint: = is not a valid operator. Did you mean == ?",
  "signature_zh": "错误：无效的需求：'requests=>2.0'（来自 requirements.txt 第 1 行）\n提示：= 不是有效运算符。你是想用 == 吗？",
  "regex": "ERROR:\\ Invalid\\ requirement:\\ 'requests=>2\\.0'\\ \\(from\\ line\\ 1\\ of\\ requirements\\.txt\\)\\\nHint:\\ =\\ is\\ not\\ a\\ valid\\ operator\\.\\ Did\\ you\\ mean\\ ==\\ \\?",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A typo in requirements.txt uses `=>` instead of `>=` or `==`. pip's requirement parser rejects the malformed version specifier.",
  "root_cause_type": "generic",
  "root_cause_zh": "requirements.txt 中的拼写错误使用了 `=>` 而不是 `>=` 或 `==`。pip 的需求解析器拒绝了这个格式错误的版本说明符。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The parse error occurs before dependency resolution; --no-deps does not bypass parsing.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Upgrade flag does not change parsing; the same line fails.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Fix the operator in requirements.txt:\nsed -i 's/=>/>=/g' requirements.txt\npip install -r requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Validate requirements before install:\npython -m pip install --dry-run -r requirements.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-27",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}