python3-pip has no installation candidate

Viewed 15584

I am having an error after typing:

sudo apt-get install python3-pip

This is the error:

Package python3-pip is not available but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-pip' has no installation candidate

What should I do?

3 Answers

You need to update source list first, Try running

sudo apt-get update
sudo apt-get upgrade  #Optional
sudo apt install python3-pip

The solution is to add the universe repository:

sudo add-apt-repository universe

Then update apt:

sudo apt update

And try again:

sudo apt install python3-pip

hi I had same issue but I ran the following commands to fix it

  • sudo add-apt-repository universe
  • sudo apt-get update
  • sudo apt install python3-pip

and it solved the problem

Related