最佳答案
从pip install --help:
--user Install to the Python user install directory for your platform.
Typically ~/.local/, or %APPDATA%\Python on Windows.
(See the Python documentation for site.USER_BASE for full details.)
site.USER_BASE的文档是一个有趣的*NIX主题的可怕虫洞,我不理解。
为什么将包安装到~/.local/很重要?为什么不把一个可执行文件放在我的$PATH的某个地方?