首页 > 解决方案 > 安装 python-dev 和 python-pip 时出现 Python 依赖项错误

问题描述

尝试安装 MHN 时,出现此错误。我安装了 Python2 和 python-pip。有什么想法吗?

The following packages have unmet dependencies:
 python-dev : Depends: python (= 2.7.15~rc1-1)
              Depends: libpython-dev (= 2.7.15~rc1-1) but it is not going to be installed
 python-pip : Depends: python-pip-whl (= 9.0.1-2.3~ubuntu1.18.04.3) but 20.0.2-5ubuntu1.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.

到目前为止,我尝试清除 python2,因为我在网上找不到任何东西。谢谢

标签: pythonlinuxubuntuapt

解决方案


推荐阅读