{
  "id": "python/pip-recursive-requirements-loop",
  "signature": "ERROR: Could not find a version that satisfies the requirement -r base.txt (from versions: none)\nERROR: No matching distribution found for -r base.txt",
  "signature_zh": "错误：找不到满足 -r base.txt 要求的版本（可用版本：无）\n错误：找不到与 -r base.txt 匹配的分发包",
  "regex": "ERROR:\\ Could\\ not\\ find\\ a\\ version\\ that\\ satisfies\\ the\\ requirement\\ \\-r\\ base\\.txt\\ \\(from\\ versions:\\ none\\)\\\nERROR:\\ No\\ matching\\ distribution\\ found\\ for\\ \\-r\\ base\\.txt",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A requirements file includes itself via `-r`, creating an infinite inclusion loop that pip reports as a missing package named `-r base.txt`.",
  "root_cause_type": "generic",
  "root_cause_zh": "某个 requirements 文件通过 `-r` 包含自身，形成无限包含循环，pip 将其报告为名为 `-r base.txt` 的缺失包。",
  "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": "The error is in requirements file inclusion, not dependency resolution.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The loop is in user configuration; pip behavior is correct.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removes shared dependencies and breaks other requirements files that include it.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "Remove the `-r base.txt` line from base.txt itself; only include base.txt from other files.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install pipdeptree && pipdeptree --warn silence  # or use `pip-compile` which detects loops",
      "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": "2025-09-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}