When developing Python under Ubuntu 14.04.3 environment, the following problems are encountered.
When installing pip, you first need to install setuptools, use the command sudo apt-get install python-setuptools to install setuptools.
The following error occurred:
The following packages have unmet dependencies:
python-setuptools : Depends: python-pkg-resources(=3.3-1ubuntu1) but 3.3-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
Solution:
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
sudo apt-get install python-setuptools
Then use sudo easy_install pip to install pip.