{
  "id": "python/pip-install-ignore-installed",
  "signature": "ERROR: Ignored installed distribution because it is installed in a non-user location",
  "signature_zh": "错误：忽略已安装的发行版，因为它安装在非用户位置",
  "regex": "ERROR:\\ Ignored\\ installed\\ distribution\\ because\\ it\\ is\\ installed\\ in\\ a\\ non\\-user\\ location",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Pip detects a package installed in system directories and refuses to overwrite it without --user or --upgrade flags.",
  "root_cause_type": "generic",
  "root_cause_zh": "Pip 检测到包安装在系统目录中，拒绝在没有 --user 或 --upgrade 标志的情况下覆盖它。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Forcing reinstall with --force-reinstall",
      "why_fails": "May still conflict with system permissions.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Deleting the system package manually",
      "why_fails": "Risky and may break system dependencies.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install with --user flag",
      "success_rate": 0.9,
      "how": "pip install --user package_name",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a virtual environment",
      "success_rate": 0.95,
      "how": "python -m venv myenv && source myenv/bin/activate && pip install package_name",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}