{
  "id": "python/pip-requirements-file-parse-error",
  "signature": "ERROR: Invalid requirement: '-e git+https://github.com/user/repo.git#egg=package' - Expected a valid requirement name",
  "signature_zh": "错误：无效的要求：'-e git+https://github.com/user/repo.git#egg=package' - 期望有效的需求名称",
  "regex": "ERROR:\\ Invalid\\ requirement:\\ '\\-e\\ git\\+https://github\\.com/user/repo\\.git\\#egg=package'\\ \\-\\ Expected\\ a\\ valid\\ requirement\\ name",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The editable install format in requirements.txt is malformed, often missing the -e flag or incorrect URL syntax.",
  "root_cause_type": "generic",
  "root_cause_zh": "requirements.txt 中的可编辑安装格式格式错误，通常缺少 -e 标志或 URL 语法不正确。",
  "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"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing the -e flag and treating it as a regular URL",
      "why_fails": "Without -e, pip will try to install from the URL but may not handle it as an editable install.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding extra spaces around the URL",
      "why_fails": "The syntax is strict; extra spaces may break parsing.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the correct editable install format",
      "success_rate": 0.95,
      "how": "In requirements.txt: `-e git+https://github.com/user/repo.git#egg=package` (ensure no extra characters).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Install directly with pip using the -e flag",
      "success_rate": 0.9,
      "how": "`pip install -e git+https://github.com/user/repo.git#egg=package`",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}