Ubuntu 14.04.3环境下进行Python开发的时候遇到如下问题。
安装pip的时候,首先需要安装setuptools,使用命令sudo apt-get install python-setuptools进行setuptools的安装。
出现如下错误:
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.
解决办法:
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
sudo apt-get install python-setuptools
然后使用sudo easy_install pip进行pip的安装。