{
  "id": "python/setuptools-invalid-environment-marker",
  "signature": "pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid environment marker: python_version >= '3.7' and",
  "signature_zh": "pkg_resources.extern.packaging.requirements.InvalidRequirement: 无效的环境标记：python_version >= '3.7' and",
  "regex": "pkg_resources\\.extern\\.packaging\\.requirements\\.InvalidRequirement:\\ Invalid\\ environment\\ marker:\\ python_version\\ >=\\ '3\\.7'\\ and",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A package's metadata contains a malformed environment marker, typically due to a missing operand after 'and' or 'or'. This can happen with hand-edited setup.py or a bug in packaging tools.",
  "root_cause_type": "generic",
  "root_cause_zh": "包的元数据包含格式错误的环境标记，通常是由于 'and' 或 'or' 后缺少操作数。这可能发生在手动编辑 setup.py 或打包工具存在 bug 时。",
  "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"
    },
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The malformed marker prevents proper dependency resolution; force install may skip dependencies.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The issue is in the package's metadata, not the packaging library.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.7,
      "how": "Contact the package maintainer to fix the metadata. As a temporary workaround, install with --no-deps and manually install dependencies.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "If you control the package, correct the environment marker in setup.py (e.g., ensure it ends with a valid expression) and rebuild.",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-10-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}