{
  "id": "python/setuptools-missing-extras-requires",
  "signature": "WARNING: mypkg 1.0 does not provide the extra 'dev'",
  "signature_zh": "警告：mypkg 1.0 未提供额外项 'dev'",
  "regex": "WARNING:\\ mypkg\\ 1\\.0\\ does\\ not\\ provide\\ the\\ extra\\ 'dev'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The package metadata does not declare the requested extra in extras_require or [project.optional-dependencies], so pip installs only the base package.",
  "root_cause_type": "generic",
  "root_cause_zh": "包元数据未在 extras_require 或 [project.optional-dependencies] 中声明所请求的额外项，因此 pip 仅安装基础包。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "--pre enables pre-releases but does not create extras that are not declared.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Upgrading does not add extras to the metadata; the warning persists.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If 'all' is not declared either, the same warning appears for 'all'.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install mypkg pytest ruff mypy",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "# in pyproject.toml\n[project.optional-dependencies]\ndev = [\"pytest\", \"ruff\"]\npip install -e '.[dev]'",
      "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-06-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}