Kivy for Python 3 on Mac OS X
I was wondering if kivy
Python 3 is supported on Mac OS X systems. The download page from the official site kivy
seems to be kivy-1.9.0
available for Python 3.4 for Windows systems, but that doesn't seem to support Python 3 on Mac OS X:
Mac OS X Mac OS X 10.9, 10.10 (Python 2.7 required)
Kivy-1.9.0-rev3-osx.dmg (Mirror)
It seems a bit but pointless, why should kivy support Python 3 on Windows but not Mac OS X? Could this be due to the lack of PyGame support for Python 3 for OS X systems? In fact, there is a way to install PyGame for OS X systems for Python 3, so I donβt understand why they donβt fix this issue if it really is a problem.
I also tried to install it globally via pip3
using:
sudo pip3 install kivy
But I am getting the following error:
Collecting kivy Downloading Kivy-1.9.0.tar.gz (16.2MB) 100% | βββββββββββββββββββββββββββββββ | 16.2 MB 34 kB / s Complete output from python setup.py egg_info command:
Cython is missing, its required for compiling kivy ! Traceback (most recent call last): File "<string>", line 20, in <module> File "/private/tmp/pip-build-qt70t_44/kivy/setup.py", line 173, in <module> from Cython.Distutils import build_ext ImportError: No module named 'Cython' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-qt70t_44/kivy
source to share
You will need to build from source .
As mentioned in the previous post, you will need to install Cython.
To get the latest version use
$ pip3 install cython
From there, you need to change setup.py. Here's an example of how I did it.
source to share