python
config_error
ai_generated
true
WARNING: The script mytool is installed in '/home/user/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ID: python/setuptools-entry-points-conflict
80%Fix Rate
89%Confidence
0Evidence
2024-05-14First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
The user-site bin directory is not included in PATH, so console_scripts entry points are not discoverable after installation.
generic中文
用户 site 的 bin 目录未包含在 PATH 中,因此安装后无法发现 console_scripts 入口点。
Workarounds
-
98% success
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
85% success
python -c "import site, os; print(os.path.join(site.USER_BASE, 'bin'))" $HOME/.local/bin/mytool --help
Dead Ends
Common approaches that don't work:
-
90% fail
Suppresses the warning but the script remains unreachable from the shell.
-
50% fail
Installs to system bin, which may not be writable and pollutes the OS Python.
-
60% fail
May require root and puts files in a location that could shadow system tools.