python-tk有未满足的依赖项

时间:2016-03-23 08:31:30

标签: python tkinter tcl tk ubuntu-14.10

我正在尝试使用python 2.7在Ubuntu 14.10上安装python-tk。但它会引发以下依赖性错误。请帮我解决这个问题。我尝试了很多方法,但无法解决它。

python-tk : Depends: blt (>= 2.4z-4.1) but it is not going to be installed
             Depends: tcl8.5 (>= 8.5.0) but it is not going to be installed
             Depends: tk8.5 (>= 8.5.0) but it is not going to be installed

1 个答案:

答案 0 :(得分:2)

首先更新包索引。

sudo apt-get update

在安装python-tk之前建立依赖关系。

sudo apt-get build-dep python-tk

然后安装python-tk包:

sudo apt-get install python-tk