所以我试试这个代码:
from kivy.app import App
from kivy.uix.label import Label
class FirstKivy(App):
def build(self):
return Label(text="Hello Kivy!")
FirstKivy().run()
得到了这个error
:
[INFO ] [Logger ] Record log in C:\Users\raviv.kivy\logs\kivy_19-04-17_45.txt [INFO ] [Kivy
] v1.10.1 [INFO ] [Python ] v3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] [INFO ] [Factory
] 194 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored) [CRITICAL] [Text ] Unable to find any valuable Text provider. sdl2 - ImportError: DLL load failed: The specified module could not be found. File "C:\Users\jim\csv_file\lib\site-packages\kivy\core__init__.py", line 59, in core_select_lib fromlist=[modulename], level=0) File "C:\Users\jim\csv_file\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,pil - ModuleNotFoundError: No module named 'PIL' File "C:\Users\jim\csv_file\lib\site-packages\kivy\core__init__.py", line 59, in core_select_lib fromlist=[modulename], level=0) File "C:\Users\jim\csv_file\lib\site-packages\kivy\core\text\text_pil.py", line 7, in from PIL import Image, ImageFont, ImageDraw
[CRITICAL] [App ] Unable to get a Text provider, abort.
所以我找到了this post并安装了上面提到的所有内容:
^{pr2}$还有这个error
试试吧
或者
^{pr2}$取下一个看看错误是否改变了;我可以想象它的角度。我也遇到了类似的问题司机。你也不需要gstreamer(现在)
相关问题 更多 >
编程相关推荐