{
  "id": "pip/pip-requires-virtualenv",
  "signature": "ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. <package> is installed but <dependency> is missing.",
  "signature_zh": "错误：pip的依赖解析器当前未考虑所有已安装的包。此行为是以下依赖冲突的来源。<package>已安装但缺少<dependency>。",
  "regex": "pip's dependency resolver does not currently take into account all the packages that are installed",
  "domain": "pip",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Pip's resolver does not check the full set of installed packages when resolving dependencies, leading to conflicts when a package requires a dependency that is not installed or is an incompatible version.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip的解析器在解析依赖时未检查所有已安装的包，导致当某个包需要未安装或不兼容版本的依赖时产生冲突。",
  "versions": [
    {
      "version": "pip 21.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 22.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 23.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The resolver behavior is inherent to pip's design and not fixed by version upgrades alone.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This can break environment consistency and may reintroduce the same conflicts if requirements are not pinned.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create a fresh virtual environment and install packages with pinned versions: `python -m venv venv && source venv/bin/activate && pip install -r requirements.txt`",
      "success_rate": 0.85,
      "how": "Create a fresh virtual environment and install packages with pinned versions: `python -m venv venv && source venv/bin/activate && pip install -r requirements.txt`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use `pip check` to identify and manually fix missing or conflicting dependencies, then install missing packages: `pip install <missing-dependency>==<compatible-version>`",
      "success_rate": 0.75,
      "how": "Use `pip check` to identify and manually fix missing or conflicting dependencies, then install missing packages: `pip install <missing-dependency>==<compatible-version>`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "创建新的虚拟环境并使用固定版本安装包：`python -m venv venv && source venv/bin/activate && pip install -r requirements.txt`",
    "使用 `pip check` 识别并手动修复缺失或冲突的依赖，然后安装缺失包：`pip install <missing-dependency>==<compatible-version>`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pip.pypa.io/en/stable/topics/dependency-resolution/",
  "official_doc_section": null,
  "error_code": "ERROR",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2023-05-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}