{
  "id": "python/pip-setup-py-not-found",
  "signature": "ERROR: file:///path/to/project does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.",
  "signature_zh": "错误：file:///path/to/project 似乎不是 Python 项目：既未找到 'setup.py' 也未找到 'pyproject.toml'。",
  "regex": "ERROR:\\ file:///path/to/project\\ does\\ not\\ appear\\ to\\ be\\ a\\ Python\\ project:\\ neither\\ 'setup\\.py'\\ nor\\ 'pyproject\\.toml'\\ found\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pip was pointed at a directory (or VCS URL) that lacks the build metadata files it needs to identify a Python package.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 被指向一个缺少构建元数据文件的目录（或 VCS URL），无法识别为 Python 包。",
  "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": "Skipping deps does not change the metadata discovery step; the same error is raised.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is about the target directory, not the pip version.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Point pip at the actual package directory that contains setup.py or pyproject.toml, or install from the parent with `pip install ./project`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "If the project uses only setup.cfg, add a minimal pyproject.toml: `[build-system]\\nrequires=['setuptools>=61']\\nbuild-backend='setuptools.build_meta'`.",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-16",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}