无法在Ubuntu 14.04上安装python pip [英] Unable to install python pip on Ubuntu 14.04

查看:181
本文介绍了无法在Ubuntu 14.04上安装python pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我用来安装python-pip的命令

This is the command I used to install python-pip

sudo apt-get install python-pip

我收到以下错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 python-pip : Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
              Recommends: python-dev-all (>= 2.6) but it is not installable
E: Unable to correct problems, you have held broken packages.

我已经安装了最新版本的python-dev

I already installed the latest version of python-dev

当我尝试使用安装python-setuptools时 sudo apt-get install python-setuptools我收到以下错误

When i try to install python-setuptools using sudo apt-get install python-setuptools I get the below error

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
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.

请向我说明如何解决该错误,并指导我完成安装python-pip的步骤.

Explain me how to resolve the error and guide me the steps to get python-pip installed.

推荐答案

在安装python-pip时遇到了相同的错误,以下命令解决了我的问题.

got the same error when I install python-pip, the following command solved my problem.

sudo apt-get install python-pkg-resources=3.3-1ubuntu1
sudo apt-get install python-setuptools

这篇关于无法在Ubuntu 14.04上安装python pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆