安装Python开发和Python pip时出现Python依赖项错误

安装Python开发和Python pip时出现Python依赖项错误,python,linux,ubuntu,apt,Python,Linux,Ubuntu,Apt,当试图安装MHN时,我遇到了这个错误。我已经安装了Python2和pythonpip。有什么想法吗 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 : D

当试图安装MHN时,我遇到了这个错误。我已经安装了Python2和pythonpip。有什么想法吗

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,因为我在网上找不到任何东西。谢谢

为什么要使用python 2.7??它不再支持MHNso所需要的依赖性,因为Ubuntu附带了一个已安装的python3。你需要隔离py2。在venv中安装7个,并在ITY中安装MHN是的,或多或少