{
  "id": "python/pip-req-file-not-found-relative",
  "signature": "ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements/base.txt'",
  "signature_zh": "错误：无法打开需求文件：[Errno 2] 没有那个文件或目录：'requirements/base.txt'",
  "regex": "ERROR:\\ Could\\ not\\ open\\ requirements\\ file:\\ \\[Errno\\ 2\\]\\ No\\ such\\ file\\ or\\ directory:\\ 'requirements/base\\.txt'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The -r path is resolved relative to the current working directory, not to the file that contains the -r line.",
  "root_cause_type": "generic",
  "root_cause_zh": "-r 路径相对于当前工作目录解析，而不是相对于包含 -r 行的文件。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "--no-index affects package lookup, not file resolution.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "MANIFEST.in is for sdist contents, not for pip's requirements resolution.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Changes the base for resolution but may break other relative paths in the same file.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "cd /path/to/project\npip install -r requirements/base.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "# requirements.txt at project root\n-r requirements/base.txt\n-r requirements/dev.txt\npip install -r requirements.txt",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-11-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}