As background, I am trying to back out of my anaconda distro and use pip to do my own package management. I had an old anaconda version 3.4 which I have deleted. I upgraded python to 3.5 alongside Ubuntu 16.04 and am in the process of re-installing all the rest of the packages that I use.
Here is my problem with pip, in a nutshell.
:~/Downloads$ python --version
Python 3.5.2
:~/Downloads$ python get-pip.py
Requirement already up-to-date: pip in /home/XXX/.local/lib/python3.5/site-packages
:~/Downloads$ pip install -U pip
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
:~/Downloads$ pip install scipy
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
Now, the apt install pip does in fact work. But then I have myriad problems with that version of pip that I have not experienced before, foremost among which is the fact that I can't install the apt managed pip to 9.0.1 from 8.1.1. So I apt removed pip and am now back to square one.
But all that is irrelevant, I want to get pip working as is. What is going wrong with get-pip.py?
Best Answer
Installing pip with apt should not be the answer.
You installed PIP right, but you have to add the executable path to you PATH variable,
You can add this to the end of
~/.profile
to make the change permanent. You may need to runsource ~/.profile
in a new shell, or you can log out and back in.