{
  "id": "python/pip-requirement-already-satisfied-wrong-version",
  "signature": "Requirement already satisfied: foo in /usr/lib/python3/dist-packages (1.0.0), but you have foo 2.0.0",
  "signature_zh": "已满足要求：foo 位于 /usr/lib/python3/dist-packages (1.0.0)，但您已安装 foo 2.0.0",
  "regex": "Requirement\\ already\\ satisfied:\\ foo\\ in\\ /usr/lib/python3/dist\\-packages\\ \\(1\\.0\\.0\\),\\ but\\ you\\ have\\ foo\\ 2\\.0\\.0",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Multiple site-packages locations on sys.path; pip sees one installed copy while another shadows it.",
  "root_cause_type": "generic",
  "root_cause_zh": "sys.path 上存在多个 site-packages 位置；pip 看到的是一个已安装副本，而另一个副本将其遮蔽。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Reinstalls into one location while the shadowing copy remains, so the wrong version still imports.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removing system packages can break OS tooling and is often not permitted.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "python -m venv .venv\nsource .venv/bin/activate\npip install foo",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.75,
      "how": "python -c \"import sys; print('\\n'.join(sys.path))\"\npython -m pip install --target=/custom/path 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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}