由于我在服务器上,没有管理员权限,所以我需要在本地安装我自己版本的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 附近的某个地方
