Skip to content

Instantly share code, notes, and snippets.

@garyjohnson
Last active February 24, 2019 04:51
Show Gist options
  • Save garyjohnson/53c1eef4adaf57c247a4 to your computer and use it in GitHub Desktop.
Save garyjohnson/53c1eef4adaf57c247a4 to your computer and use it in GitHub Desktop.
Install Kivy 1.10.0 on macOS for Python3 without Kivy.app
#!/bin/bash
brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer
pip3 install --upgrade Cython==0.25.2
# USE_OSX_FRAMEWORKS=0 pip3 install kivy # currently doesn't work due to incompatibility with SDL_mixer: https://github.com/kivy/kivy/pull/5459
USE_OSX_FRAMEWORKS=0 pip3 install http://github.com/kivy/kivy/archive/master.zip
# --- NOTES ----
# This is so you don't need to use Kivy.app -- I prefer that these deps install via pip and run via python like everything else.
# For python2, just use python2 version of pip
# I'm assuming usage of virtualenv here -- if you want to install globally, pip3 may require `sudo -H`
@ndonnine
Copy link

ndonnine commented Feb 3, 2016

Actually, I had the same issue. I just ran your python 3 code line and it fixed it... I think some of the documentation floating around the internet (especially the brew install info) and even on the Kivy site and others has the code for only Python 2.

Thanks garyjohnson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment