{
  "id": "python/pip-install-error-local-version-identifier",
  "signature": "ERROR: Invalid requirement: 'package==1.0+local' (from line 1 of requirements.txt)",
  "signature_zh": "错误：无效的要求：'package==1.0+local'（来自 requirements.txt 第 1 行）",
  "regex": "ERROR:\\ Invalid\\ requirement:\\ 'package==1\\.0\\+local'\\ \\(from\\ line\\ 1\\ of\\ requirements\\.txt\\)",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The requirement specifies a local version identifier (e.g., 1.0+local) which is not allowed in requirements files unless the package is available from a local index or direct URL.",
  "root_cause_type": "generic",
  "root_cause_zh": "要求指定了本地版本标识符（例如 1.0+local），除非包来自本地索引或直接 URL，否则在 requirements 文件中不允许使用。",
  "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": "May install a different version than intended, causing compatibility issues.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not affect local version identifiers; still invalid.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Specify the package with a direct URL: package @ https://example.com/package-1.0+local.tar.gz.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Use a local index: pip install --index-url file:///path/to/index package==1.0+local.",
      "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": "true",
  "first_seen": "2025-06-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}