Steps for getting kivy on MacOS to work with pycharm


You have two choices


  1. compile a whole lot of packages from source – which does produce a nice environment, but on the Mac takes even longer than the 2 hours it took on linux

or

  1. Use the default python that comes with kivy by doing the following:

    1. install kivy

    2. check to see if that installed a command line link properly: (use the terminal, if you see the second line after typing the first line you are good)

ls -l /usr/local/bin/kivy

lrwxr-xr-x 1 root admin 48 Oct 18 2013 /usr/local/bin/kivy -> /Applications/Kivy.app/Contents/Resources/script

      1. if the link doesn't exist, put it in

    1. Install pycharm if you haven't already.

    2. Create your pycharm project

      1. choose <pycharm><preferences> menu item

      2. choose the “project interpreter” settings

      3. click on the gear in the upper right and choose “create virtualEnv”

        1. create the virtualenv – the settings don't really matter, you will change them next anyway

      4. click on the gear again and choose “more” this time

      5. click on your virtualenv name in the list of interpreters.

      6. Click on the little pencil at the bottom of this dialog to bring up the edit python interpreter dialog.

      7. Choose kivy for the interpreter name (the top text box in the dialog)

      8. put /usr/local/bin/kivy in the bottem text box (type it in – pycharm will be unhappy if you try to use the dialog navigation.)

      9. Press ok to all of the dialogs and run your project (or a sample), you should now see a window pop up on the screen.


Credit where credit is due:


I looked many places to find a good solution and the most helpful was:

https://coderwall.com/p/te13rg


Testing done with