Install Kivy 1.8 on Debian Wheezy

Kivy is an Open source Python library for rapid development of applications.


# apt-get install pkg-config python-setuptools python-pygame python-opengl \
python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev \
build-essential libgl1-mesa-dev libgles2-mesa-dev python-pip wget

Do not install Cython 0.21. It does not work with Kivy 1.8. Install Cython 0.20:

# pip install -I cython==0.20

Download Kivy tarball from here:

$ wget
$ tar xvfz Kivy-1.8.0.tar.gz && cd ./Kivy-1.8.0

Build Kivy:

$ python build_ext --inplace -f

Install Kivy:

# python install

Very Simple Usage Example

Create a file called with the following content:

from import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='Hello World')


Run it:

$ python ./

10 thoughts on “Install Kivy 1.8 on Debian Wheezy

  1. Hello .. Sorry for the delay. I use Debian 7.8 (Wheezy), python-pip 1.1-3 and Kivy 1.8.0 … The old problem was resolved using Cython 0.21 but I still have this problem when launching the command “python setup .py build_ext –inplace -f “:

    Kivy / graphics / shader.pyx: 448: 63: Casting temporary Python object to non-numeric non-Python type
    Building ‘’ extension
    Gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I / usr / include / python2.7 -c kivy / graphics / shader.c -o build / temp. Linux-i686-2.7 / kivy / graphics / shader.o
    Kivy / graphics / shader.c: 1: 2: error: #error Do not use this file, it is the result of a failed Cython compilation.
    Error: command ‘gcc’ failed with exit status 1

    • I solved the problem using Kivy 1.9.0 .. Sorry for the inconvenience .. Thanks .. super tuto .. :-)

Leave a Reply

Your email address will not be published. Required fields are marked *