Last active
February 24, 2019 04:51
-
-
Save garyjohnson/53c1eef4adaf57c247a4 to your computer and use it in GitHub Desktop.
Install Kivy 1.10.0 on macOS for Python3 without Kivy.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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` |
@zudijyr Do you mean from the Kivy.app? I think support for Python 3 was added for the recent 1.9.1 release
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
Do you know how to make Kivy use python3? No matter what I try, it always sticks to Python2.7.