Sudo Apt-Get Install Python-Pip Is Failing

Sudo Apt-Get Install Python-Pip Is Failing
sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip

how to install python-pip in ubuntu:14.04?

2

2 Answers

python-pip is in the universe repositories, therefore use the steps below:

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python-pip
20

I ran into this problem trying to install pip for python2; e.i. I wanted pip2. What worked for me was this:

sudo apt-get update && sudo apt-get install python-pip

Hope this helps someone.

1
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.