无法为 Python 2.7 安装 IDLE

无法为 Python 2.7 安装 IDLE

我正在尝试使用终端和软件中心安装 IDLE 2.7,但出现了同样的错误:

Package dependencies cannot be resolved

This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.

The following packages have unmet dependencies:

idle-python2.7: Depends: python2.7-tk but it is a virtual package

我正在使用 Ubuntu 14。有什么办法可以解决这个问题吗?IDLE 3.4 运行良好,但我需要 2.7。

答案1

打开终端并输入:

sudo apt-get update
sudo apt-get install aptitude
sudo aptitude install python-tk idle-python2.7 idle  

使用 aptitude 而不是 apt-get 可以提供一些自动解决方案来删除冲突的包。

相关内容