Kivy support for SDL2 in Virtualenv

扶醉桌前 提交于 2019-12-04 07:14:05

I had a similar error on my new Mac (Sierra). I followed the suggestion at https://github.com/kivy/kivy/issues/4688

and installed the latest version of Kivy using the command
USE_OSX_FRAMEWORKS=0 pip install https://github.com/kivy/kivy/zipball/master

This worked for me, and Kivy is now using SDL2 and not looking for pygame.
Previously, I either needed pygame, but got errors about a "Windows BMP file" when resizing the window, or if I removed pygame, it didn't find the SDL2 I'd installed with brew.

Rambutan

After much wheel spinning with homebrew, the only thing that worked for me was to use macports to install the dependencies:

sudo port install libsdl2 libsdl2_image libsdl2_ttf libsdl2_mixer
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!