I want to install tensorflow-cpu using pip on my Ubuntu 18.04, 64-bit system and it required pip>=19.0. I was having pip 9.0.x and was using pip3 to install packages but to fulfill the requirement I ran
pip3 install pip
which installed pip 19.2.3 but after doing it I can no longer use pip3. Using pip3 now gives this error
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ImportError: cannot import name 'main'
Earlier using pip would give this error
Command 'pip' not found, but can be installed with:
sudo apt install python-pip
but now using it to install packages works totally fine.
I read a lot of articles after which I realised that we use pip for python 2.x and for python 3.x we use pip3. But with the change in behaviour after upgrading pip I'm totally confused and can't find any help. Is using pip to install a package same as installing it using pip3. What are the differences between them?