不能用Anaconda运行Kivy 1.9.0

时间:2015-11-15 03:09:40

标签: python kivy

我试图让Anaconda按照这里的指导方针与Kivy 1.9.0合作:https://github.com/kivy/kivy/wiki/Connecting-Kivy-with-Anaconda-(OSX)

当我尝试使用示例kivy程序运行kivyconda时,我得到:

Tabishs-MBP:Desktop tabchas$ kivyconda test.py 
discarding /Users/tabchas/anaconda2/bin from PATH
prepending /Users/tabchas/anaconda2/envs/kivy/bin to PATH
[INFO   ] [Logger      ] Record log in /Applications/Kivy.app/Contents/Resources/.kivy/logs/kivy_15-   11-14_1.txt
[INFO   ] [Kivy        ] v1.9.0
[INFO   ] [Python      ] v2.7.10 |Continuum Analytics, Inc.| (default, Oct 19 2015, 18:31:17) 
[GCC 4.2.1 (Apple Inc. build 5577)]
[INFO   ] [Factory     ] 173 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_gif (img_sdl2, img_pil,     img_ffpyplayer ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
sdl2 - ImportError:     dlopen(/Applications/Kivy.app/Contents/Resources/kivy/kivy/core/window/_window_sdl2.so, 2): Library     not loaded: @executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2
Referenced from: /Applications/Kivy.app/Contents/Resources/kivy/kivy/core/window/_window_sdl2.so
Reason: image not found
File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/core/__init__.py", line 57, in core_select_lib fromlist=[modulename], level=0)
File"/Applications/Kivy.app/Contents/Resources/kivy/kivy/core/window/window_sdl2.py", line 26, in <module>
from kivy.core.window._window_sdl2 import _WindowSDL2Storage

[CRITICAL] [App         ] Unable to get a Window, abort.

是否有人成功让Kivy 1.9.0与Anaconda合作?

1 个答案:

答案 0 :(得分:0)

按照以下说明在Anaconda 2.4中安装Kivy 1.9:

http://kivy.org/docs/installation/installation-osx.html

您还需要pygame,并且需要按照其网站上有关OS X的说明进行操作。