{
  "id": "python/packaging-unsupported-specifier",
  "signature": "ERROR: packaging.specifiers.InvalidSpecifier: Invalid specifier: '~=1.0.0' - Operator '~=' is not supported for this version",
  "signature_zh": "错误：packaging.specifiers.InvalidSpecifier：无效说明符：'~=1.0.0' - 此版本不支持运算符 '~='",
  "regex": "ERROR:\\ packaging\\.specifiers\\.InvalidSpecifier:\\ Invalid\\ specifier:\\ '\\~=1\\.0\\.0'\\ \\-\\ Operator\\ '\\~='\\ is\\ not\\ supported\\ for\\ this\\ version",
  "domain": "python",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "The packaging library version is too old to support the compatible release operator '~='.",
  "root_cause_type": "generic",
  "root_cause_zh": "packaging 库版本太旧，不支持兼容发布运算符 '~='。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using '==' instead of '~='",
      "why_fails": "Changes the semantic meaning of the requirement, possibly missing compatible updates.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignoring the error and proceeding",
      "why_fails": "The specifier will not be parsed correctly, leading to runtime errors.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade the packaging library",
      "success_rate": 0.95,
      "how": "Run: pip install --upgrade packaging",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a different specifier like '>=1.0.0,<2.0.0' instead of '~=1.0.0'",
      "success_rate": 0.9,
      "how": "Replace '~=1.0.0' with '>=1.0.0,<2.0.0' in requirements.",
      "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": "2024-08-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}