Install

Date: February 23rd 2016
Last updated: February 23rd 2016

Install Cython

sudo apt-get install python-dev (or python3-dev)
sudo pip3 install --upgrade Cython #tested up to v0.23

Install development dependencies

sudo apt-get install python-setuptools python-pygame \
python-opengl python-gst0.10 python-enchant \
gstreamer0.10-plugins-good python-dev build-essential \
libgl1-mesa-dev-lts-quantal libgles2-mesa-dev-lts-quantal \
python-pip

I also had to do the following to install ffmpeg:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg

Add kivy repo and install

sudo add-apt-repository ppa:kivy-team/kivy
sudo pip3 install --upgrade buildozer
sudo apt-get update
sudo apt-get install python-kivy

My preferred install using a virtual environment

# Install necessary system packages
sudo apt-get install -y \
    python-pip \
    build-essential \
    git \
    python3 \
    python3-dev \
    ffmpeg \
    libsdl2-dev \
    libsdl2-image-dev \
    libsdl2-mixer-dev \
    libsdl2-ttf-dev \
    libportmidi-dev \
    libswscale-dev \
    libavformat-dev \
    libavcodec-dev \
    zlib1g-dev

# My OS needed this to install ffmpeg    
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg    

# Create a virtualenv
virtualenv -p python3 --no-site-packages kivy

# Enter the virtualenv
cd kivy
source bin/activate

# Use correct Cython version here
pip install Cython==0.23

# Install Kivy etc
pip install kivy
pip install numpy
pip install hg+http://bitbucket.org/pygame/pygame
# My system couldn't find sdl2, but works using pygame

results matching ""

    No results matching ""