# 警告：脚本 mytool 安装在 '/home/user/.local/bin'，该目录不在 PATH 中。
考虑将此目录添加到 PATH，或者如果您希望抑制此警告，请使用 --no-warn-script-location。

- **ID:** `python/setuptools-entry-points-conflict`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

用户 site 的 bin 目录未包含在 PATH 中，因此安装后无法发现 console_scripts 入口点。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (98% 成功率)
   ```
   echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
   ```
2. **** (85% 成功率)
   ```
   python -c "import site, os; print(os.path.join(site.USER_BASE, 'bin'))"
$HOME/.local/bin/mytool --help
   ```

## 无效尝试

- **** — Suppresses the warning but the script remains unreachable from the shell. (90% 失败率)
- **** — Installs to system bin, which may not be writable and pollutes the OS Python. (50% 失败率)
- **** — May require root and puts files in a location that could shadow system tools. (60% 失败率)
