{
  "id": "python/pip-egg-fragment-not-supported",
  "signature": "ERROR: Invalid requirement: 'git+https://github.com/org/repo.git#egg=my-pkg&subdirectory=src'",
  "signature_zh": "错误：无效的依赖项：'git+https://github.com/org/repo.git#egg=my-pkg&subdirectory=src'",
  "regex": "ERROR:\\ Invalid\\ requirement:\\ 'git\\+https://github\\.com/org/repo\\.git\\#egg=my\\-pkg\\&subdirectory=src'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The egg fragment contains multiple '&'-joined parameters; pip's requirement parser accepts only a single #egg=name or #subdirectory= in the URL fragment.",
  "root_cause_type": "generic",
  "root_cause_zh": "egg 片段包含多个用 '&' 连接参数；pip 的依赖解析器只接受 URL 片段中的单个 #egg=name 或 #subdirectory=。",
  "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"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Quotes become part of the URL and are still parsed as an invalid requirement.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The parser still sees two fragment parameters after decoding and rejects the requirement.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "# requirements.txt\ngit+https://github.com/org/repo.git@v1.2.3#subdirectory=src\n# or\ngit+https://github.com/org/repo.git@v1.2.3#egg=my-pkg",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install 'git+https://github.com/org/repo.git@v1.2.3' --config-settings editable_mode=compat\n# or clone + install\npip install ./repo/src",
      "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": "2025-01-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}