I have recently upgraded from Ubuntu 18.04 to 20.04 LTS. Before upgrading, I had the python-pip
package installed. But after upgrading, when I try this command the terminal says:
$ sudo pip install foo
sudo: pip: command not found
I tried to update repository information and install python-pip package, but APT says that there is no package named python-pip
in the repository.
Best Answer
python-pip
package is no longer supported by Ubuntu as Python 2.7 is no longer supported. So forget that package. But you can still install it by issuing the following on terminal:As
python3-pip
package is supported, which providespip3
command you can install it Python 3 with apt by: