由于我在服务器上并且没有管理员权限,因此我需要在本地安装我自己版本的 python 和 pip。安装 python 后,我使用了 official site 上的代码 python get-pip.py --user
。我得到以下返回,似乎 pip 已成功安装。但我不知道 pip 可执行文件在哪里,因此无法将其添加到系统环境中。那么它安装在哪里呢?
Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Collecting setuptools
Using cached setuptools-27.2.0-py2.py3-none-any.whl
Collecting wheel
Using cached wheel-0.29.0-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, wheel
Successfully installed pip setuptools wheel
最佳答案
在 Unix 上,pip install --user
... 将脚本放入 ~/.local/bin
pip 应该在 ~/.local
附近的某个地方
关于Python - 安装后 pip 可执行文件在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39536831/