Python 版本 2.7.13,PIP 有未满足的依赖项

Python 版本 2.7.13,PIP 有未满足的依赖项

我是 Ubuntu 的新手,正在使用 16.04 版本。我使用以下链接安装了 Python 2.7.13:如何在 Ubuntu 上安装最新的 Python 2.7.X 或 3.X?

然后使用此链接安装 PIP:https://www.rosehosting.com/blog/how-to-install-pip-on-ubuntu-16-04/

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 resolve the situation:

The following packages have unmet dependencies:
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.

我仔细检查了我使用的 Python 版本:

python -V

我有 python 2.7.13,所以我不明白依赖关系是如何无法满足的。

当我安装 Ubuntu 时 Python 是否已经安装好了,而再次安装它却让我陷入困境?

相关内容