{
  "id": "python/setuptools-long-description-content-type-error",
  "signature": "ValueError: Unknown distribution option: 'long_description_content_type'",
  "signature_zh": "ValueError：未知的分发选项：'long_description_content_type'",
  "regex": "ValueError:\\ Unknown\\ distribution\\ option:\\ 'long_description_content_type'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The setup.py uses a keyword argument that is not recognized by the installed version of setuptools (e.g., older setuptools).",
  "root_cause_type": "generic",
  "root_cause_zh": "setup.py 使用了已安装的 setuptools 版本不识别的关键字参数（例如较旧的 setuptools）。",
  "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": "Removing long_description_content_type entirely",
      "why_fails": "This may cause the long description to be rendered as plain text on PyPI, losing formatting.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a different name like 'content_type'",
      "why_fails": "The correct parameter name is 'long_description_content_type'; any other name is invalid.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade setuptools to a version that supports this option",
      "success_rate": 0.95,
      "how": "`pip install --upgrade setuptools>=40.0`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use pyproject.toml to specify the content type",
      "success_rate": 0.9,
      "how": "In pyproject.toml: `[project]\n...\ndescription = \"...\"\nreadme = \"README.md\"` (which implies content type)",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}