{
  "id": "python/pip-egg-info-build-failure",
  "signature": "error: [Errno 2] No such file or directory: 'setup.py'",
  "signature_zh": "错误：[Errno 2] 没有这样的文件或目录：'setup.py'",
  "regex": "error:\\ \\[Errno\\ 2\\]\\ No\\ such\\ file\\ or\\ directory:\\ 'setup\\.py'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Running build/install from the wrong directory or a project using pyproject.toml-only layout.",
  "root_cause_type": "generic",
  "root_cause_zh": "在错误的目录下运行构建/安装，或项目仅使用 pyproject.toml 布局。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Breaks PEP 517 builds and confuses tooling.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Still wrong directory; file remains missing.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "cd /path/to/project\npython -m pip install .",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "python -m build --sdist --wheel",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-03-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}