Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have just installed Ubuntu 20.04 and I have come across an issue when trying to install pip. On my older machines running 18.04, the command ran fine and installed the package. However, when installing it on 20.04, I am getting this issue:

toffee@theia:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip

I have the universe repo added, I have done countless reboots, updates and upgrades. Is there any way I can fix this?

3 Answers

I don't believe python-pip exists anymore in 20.04, looks like it has been removed from the repositories and is removed during the upgrade from 18.04(in my case 19.10) to 20.04. Maybe the functionality of the package has been bundled with a different python package?

20.04 upgrade

1

Use pip3 instead of pip

I will assume you are using the Python3 version so you can install pip3 with

sudo apt-get install python3-pip

then you can install whatever you wanted starting with;

pip3 install

All the best :)

1

First of all try to search package

apt-cache search pip | grep python

Then

dpkg -l | grep python

to see if python is installed Finally try

python3 -m pip 
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy