遵循网站上有关设置应用程序的教程会导致错误,为什么?

时间:2018-08-30 01:37:23

标签: python kivy python-3.6

摘要


已经开始使用Kivy来创建比我用tkinter所能做的更好的界面,我遇到了一个问题。导入模块后,我收到错误消息。搜索了该站点以及许多其他站点之后,我找不到任何具有解决方案的人。

研究


不适用

source code

无法工作。


[INFO   ] [Logger      ] Record log in C:\Users\*\.kivy\logs\kivy_18-08-30_12.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
[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\*\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\*\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in <module>
    from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ModuleNotFoundError: No module named 'PIL'
  File "C:\Users\*\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\*\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\core\text\text_pil.py", line 7, in <module>
    from PIL import Image, ImageFont, ImageDraw

问题


为什么会发生这种情况,我该如何解决?以前在工作。

0 个答案:

没有答案