我正在尝试使用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
答案 0 :(得分:2)
首先更新包索引。
sudo apt-get update
在安装python-tk
之前建立依赖关系。
sudo apt-get build-dep python-tk
然后安装python-tk
包:
sudo apt-get install python-tk