{
  "id": "python/setuptools-entry-points-conflict",
  "signature": "WARNING: The script mytool is installed in '/home/user/.local/bin' which is not on PATH.\nConsider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.",
  "signature_zh": "警告：脚本 mytool 安装在 '/home/user/.local/bin'，该目录不在 PATH 中。\n考虑将此目录添加到 PATH，或者如果您希望抑制此警告，请使用 --no-warn-script-location。",
  "regex": "WARNING:\\ The\\ script\\ mytool\\ is\\ installed\\ in\\ '/home/user/\\.local/bin'\\ which\\ is\\ not\\ on\\ PATH\\.\\\nConsider\\ adding\\ this\\ directory\\ to\\ PATH\\ or,\\ if\\ you\\ prefer\\ to\\ suppress\\ this\\ warning,\\ use\\ \\-\\-no\\-warn\\-script\\-location\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The user-site bin directory is not included in PATH, so console_scripts entry points are not discoverable after installation.",
  "root_cause_type": "generic",
  "root_cause_zh": "用户 site 的 bin 目录未包含在 PATH 中，因此安装后无法发现 console_scripts 入口点。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Suppresses the warning but the script remains unreachable from the shell.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Installs to system bin, which may not be writable and pollutes the OS Python.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May require root and puts files in a location that could shadow system tools.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "echo 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.bashrc\nsource ~/.bashrc",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "python -c \"import site, os; print(os.path.join(site.USER_BASE, 'bin'))\"\n$HOME/.local/bin/mytool --help",
      "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.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}