Ubuntu 中 Kivy 安装错误

Ubuntu 中 Kivy 安装错误

我正在使用 ubuntu 14.04,并尝试安装 kivy 包。安装指南说要这样做:

sudo apt-get install python-kivy

并显示此错误:

The following packages have unmet dependencies:
 python-kivy : Depends: python-kivy-bin (= 1.9.2-0~daily0+201609211917-3732-pkg135~ubuntu14.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

当我尝试执行: sudo apt-get install python-kivy python-kivy-bin 显示:

python-kivy-bin : Depends: libsdl2-2.0-0 (>= 2.0.0) but it is not going to be installed
                  Depends: libsdl2-image-2.0-0 (>= 2.0.0) but it is not going to be installed
                  Depends: libsdl2-mixer-2.0-0 (>= 2.0.0) but it is not going to be installed
                  Depends: libsdl2-ttf-2.0-0 (>= 2.0.0) but it is not going to be installed

有谁知道我该如何解决这个问题?

答案1

按照以下说明操作

sudo apt-get install python-kivy

sudo apt-get install -f   # in case any issue 

sudo apt-get install python-kivy #fire again after clear dependanceis issues.

或者

sudo apt-get install python-pip
sudo pip install kivy
sudo pip install kivy --upgrade

Kivy world 对于 GUI 应用程序开发来说非常棒。

相关内容