{
  "id": "python/pip-target-directory-not-in-path",
  "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.\nfoo 1.0 requires bar>=2.0, but you have bar 1.5 which is incompatible.",
  "signature_zh": "错误：pip 的依赖解析器目前未考虑所有已安装的包。此行为是以下依赖冲突的来源。\nfoo 1.0 需要 bar>=2.0，但您安装的是 bar 1.5，不兼容。",
  "regex": "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\\.\\\nfoo\\ 1\\.0\\ requires\\ bar>=2\\.0,\\ but\\ you\\ have\\ bar\\ 1\\.5\\ which\\ is\\ incompatible\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A package was installed with --target or --ignore-installed, so pip's view of the environment is incomplete and it cannot detect the conflict during resolution.",
  "root_cause_type": "generic",
  "root_cause_zh": "某个包使用 --target 或 --ignore-installed 安装，导致 pip 对环境的视图不完整，无法在解析期间检测到冲突。",
  "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": "Upgrading bar may break foo if foo's constraint is also unsatisfiable with the new bar; the root cause is the incomplete environment view.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "No such flag; pip check has no ignore option.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Inspect the conflict and pin compatible versions:\n  pip check\n  pip install 'bar>=2.0'\nThen re-verify: pip check",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Reinstall the affected packages without --target/--ignore-installed into a clean venv:\n  python -m venv .venv && source .venv/bin/activate\n  pip install foo",
      "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": "2024-03-31",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}