首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装python-pip和python-dev时未满足的依赖项

安装python-pip和python-dev时未满足的依赖项
EN

Stack Overflow用户
提问于 2017-02-27 21:41:53
回答 1查看 3.1K关注 0票数 2

如上所述,我尝试使用以下命令安装python-pip和python-dev:

代码语言:javascript
复制
sudo apt-get install python-pip python-dev

然后我得到:

代码语言:javascript
复制
sudo apt-get install python-pip python-dev
[sudo] password for tailongnguyen: 
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-dev : Depends: python (= 2.7.11-1) but 2.7.12-1 is to be installed
python-pip : Depends: python:any (< 2.8)
          Depends: python:any (>= 2.7.5-5~)
          Recommends: python-all-dev (>= 2.6) but it is not going to be installed
          Recommends: python-setuptools but it is not going to be installed
          Recommends: python-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我现在需要做什么?我试过了

代码语言:javascript
复制
sudo apt-get update 
sudo apt-get upgrade

但这并没有帮助

EN

回答 1

Stack Overflow用户

发布于 2017-09-12 14:21:45

请参阅此链接。这解决了这个问题,尽管我在修复这个问题后遇到了类似的apache2.2-common问题。

https://askubuntu.com/questions/275861/problem-installing-python-dev

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42487275

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档