{
  "id": "python/pip-install-from-git-no-setup",
  "signature": "ERROR: Cannot find setup.py or pyproject.toml in the repository",
  "signature_zh": "错误：在仓库中找不到 setup.py 或 pyproject.toml",
  "regex": "ERROR:\\ Cannot\\ find\\ setup\\.py\\ or\\ pyproject\\.toml\\ in\\ the\\ repository",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pip is trying to install a package from a Git repository that lacks a setup.py or pyproject.toml file, so it cannot build the package.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 尝试从缺少 setup.py 或 pyproject.toml 文件的 Git 仓库安装包，因此无法构建该包。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "--no-deps skips dependency resolution but still requires a build backend to install the package itself.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If setup.py is missing, this also fails.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install 'git+https://github.com/user/repo.git#egg=package&subdirectory=path/to/pkg'",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install package-name",
      "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": "partial",
  "first_seen": "2024-11-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}