I'm sshing into a Linux server as a user. Somehow, the server has Python 2.7.5 installed but doesn't respond to which pip.
So I tried to install pip using get-pip.py according to pip docs. The default install option seemed problematic:
$ python get-pip.py
OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/pip'
So I tried:
$ python get-pip.py --user
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Collecting setuptools
Using cached setuptools-28.8.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-9.0.1 setuptools-28.8.0 wheel-0.29.0
But which pip still produces no pip in ...(my PATH). Where was it installed, can someone make a guess?
If pip is installed via python get-pip.py --user, the executable should be located at $HOME/.local/bin/pip:
Update the path (e.g. in ~/.bashrc):
PATH=$PATH:$HOME/.local/bin/
$ which pip
~/.local/bin/pip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With