pip not installing entry_points as executables
Try:
pip install --install-option="--prefix=$PREFIX_PATH" package_name
e.g.
pip install --install-option="--prefix=/usr/local/bin" pyFooBar
Finally I got it to work. I had to remove the pip package that was installed by apt.
sudo apt remove python-pip
And then install pip again according to instructions on their website - https://pip.pypa.io/en/stable/installing/.
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
Looks like pip from Ubuntu's default repository is not same as one distributed by pypi.
Two options I can think of, first,check that pip is pointing in the right place. So try:
which python
mine says:
/usr/bin/python
yours will be different, change the path accordingly to then make sure the PATH is properly set, so:
export PATH=/usr/bin/python:${PATH}
Reinstall pip and try again. Failing that, a workaround might be to not use pip in this instance and try:
python setup.py install
which will use your default python path (not pip) and should install to:
/usr/local/bin