{
  "id": "python/pip-git-url-without-egg-fragment",
  "signature": "ERROR: Could not detect requirement name for 'git+https://github.com/org/repo.git@main', please specify one with #egg=your_package_name",
  "signature_zh": "错误：无法检测 'git+https://github.com/org/repo.git@main' 的需求名称，请使用 #egg=your_package_name 指定一个。",
  "regex": "ERROR:\\ Could\\ not\\ detect\\ requirement\\ name\\ for\\ 'git\\+https://github\\.com/org/repo\\.git@main',\\ please\\ specify\\ one\\ with\\ \\#egg=your_package_name",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pip cannot infer the distribution name from a raw VCS URL without the legacy `#egg=` fragment or a PEP 508 name prefix.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 无法从没有旧式 `#egg=` 片段或 PEP 508 名称前缀的原始 VCS 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"
    },
    {
      "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": "Trusted-host is unrelated to name detection.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "pip still needs a name to record in metadata.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Works but loses VCS provenance and complicates updates; not a general fix for requirements files.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip install 'your-package @ git+https://github.com/org/repo.git@main'",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install 'git+https://github.com/org/repo.git@main#egg=your-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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-12-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}