首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装时出现python包错误

安装时出现python包错误
EN

Stack Overflow用户
提问于 2020-03-05 14:32:30
回答 1查看 341关注 0票数 0

我正在安装python和其他一些python包。我得到了同样的错误。给我一些建议。我怎么才能修复。

代码语言:javascript
复制
palwesh@wg-palwesh:~$ 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-pip-whl (= 9.0.1-2) but 9.0.1-2.3~ubuntu1.18.04.1 is to be installed
              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.
palwesh@wg-palwesh:~$ 
EN

回答 1

Stack Overflow用户

发布于 2020-03-05 14:36:42

首先尝试sudo apt-get update以确保您的包列表是最新的。

无法更正问题,您已持有损坏的程序包。这意味着你已经使用了Apt的保留功能来停止包的更新。(apt-mark showhold向您显示保留的包,apt-mark unhold允许您删除相关保留。)

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

https://stackoverflow.com/questions/60539409

复制
相关文章

相似问题

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