{
  "id": "python/pip-requirement-already-satisfied-but-not-installed",
  "signature": "Requirement already satisfied: foo in /usr/local/lib/python3.11/site-packages (1.0.0) but you have foo 2.0.0",
  "signature_zh": "要求已满足：foo 在 /usr/local/lib/python3.11/site-packages (1.0.0) 中，但您拥有 foo 2.0.0",
  "regex": "Requirement\\ already\\ satisfied:\\ foo\\ in\\ /usr/local/lib/python3\\.11/site\\-packages\\ \\(1\\.0\\.0\\)\\ but\\ you\\ have\\ foo\\ 2\\.0\\.0",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Multiple installations of the same package, often due to user vs system site-packages conflicts.",
  "root_cause_type": "generic",
  "root_cause_zh": "同一包有多个安装，通常由于用户与系统 site-packages 冲突。",
  "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": "May not resolve the conflict if multiple installations exist.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May leave stale files or not remove all copies.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Check `pip list` and `python -m pip list` to see which pip is used; ensure you're using the correct environment.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use `pip install --force-reinstall foo` or uninstall all copies: `pip uninstall foo -y && 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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}