{
  "id": "python/setuptools-development-version-error",
  "signature": "error: invalid version '1.0.dev0' (expected a version number like '1.0')",
  "signature_zh": "错误：无效版本 '1.0.dev0'（期望类似 '1.0' 的版本号）",
  "regex": "error:\\ invalid\\ version\\ '1\\.0\\.dev0'\\ \\(expected\\ a\\ version\\ number\\ like\\ '1\\.0'\\)",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "setuptools' version parser rejects certain pre-release formats when not using PEP 440 compliant versioning.",
  "root_cause_type": "generic",
  "root_cause_zh": "当不使用符合 PEP 440 的版本控制时，setuptools 的版本解析器会拒绝某些预发布格式。",
  "versions": [
    {
      "version": "3.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.6",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Loses the dev marker and may confuse dependency resolution.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Deprecated and may cause other issues in modern environments.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "In setup.py: version='1.0.dev0'  # actually PEP 440 allows this; ensure setuptools >= 40.8.0",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install --upgrade setuptools",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}