当前位置:  开发笔记 > 编程语言 > 正文

Kivy Install出了问题 - Windows 10(正在运行,现在不是在gstreamer之后)

如何解决《KivyInstall出了问题-Windows10(正在运行,现在不是在gstreamer之后)》经验,为你挑选了1个好方法。

尝试在Windows 10中安装Kivy.使用安装基础知识

python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew  --extra-index-url https://kivy.org/downloads/packages/simple
python -m pip install kivy

它适用于一个测试"Hello World.然后我尝试安装gstreamer然后开始出错.

[INFO              ] [Logger      ] Record log in C:\Users\Ben\.kivy\logs\kivy_16-01-11_7.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 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 at all!
sdl2 - ImportError: DLL load failed: The specified procedure could not be found.
  File "C:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Python27\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in 
    from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ImportError: No module named PIL
  File "C:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Python27\lib\site-packages\kivy\core\text\text_pil.py", line 8, in 
    from PIL import Image, ImageFont, ImageDraw

[CRITICAL          ] [App         ] Unable to get a Text provider, abort.

试图找到PIL并使用python -m pip安装映像

python -m pip install image

现在,当我运行我的main.py时,我得到了一个Kivy窗口的黑盒子,里面没有任何东西,还有一个新的错误

[INFO              ] [Logger      ] Record log in C:\Users\Ben\.kivy\logs\kivy_16-01-11_11.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[INFO              ] [OSC         ] using  for socket
[INFO              ] [Window      ] Provider: sdl2
[INFO              ] [GL          ] GLEW initialization succeeded
[INFO              ] [GL          ] OpenGL version <4.5.0 NVIDIA 358.91>
[INFO              ] [GL          ] OpenGL vendor 
[INFO              ] [GL          ] OpenGL renderer 
[INFO              ] [GL          ] OpenGL parsed version: 4, 5
[INFO              ] [GL          ] Shading version <4.50 NVIDIA>
[INFO              ] [GL          ] Texture max size <16384>
[INFO              ] [GL          ] Texture max units <32>
[INFO              ] [Window      ] auto add sdl2 input provider
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO              ] [Base        ] Start application main loop
[INFO              ] [GL          ] NPOT texture support is available
 Exception Exception: Exception('tostring() has been removed. Please call tobytes() instead.',) in 'kivy.graphics.instructions.Ren
derContext.set_texture' ignored

不禁觉得我把我的装置搞得一团糟,不知道如何从头开始.任何帮助表示赞赏.

谢谢!



1> BR89..:

如果Kivy及其依赖项,则完全卸载.

python -m pip uninstall kivy

python -m pip uninstall kivy.deps.sdl2

python -m pip uninstall kivy.deps.glew

python -m pip uninstall kivy.deps.gstreamer

python -m pip uninstall image

由于问题发生在gstreamer之后,我再次避免重新安装

python -m pip install --upgrade pip wheel setuptools

python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew \
 --extra-index-url https://kivy.org/downloads/packages/simple/

python -m pip install kivy

之后能够正常运行(现在:D)

我希望这能帮助那些在Windows 10上出现Kivy问题的人

推荐阅读
地之南_816
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有