Kivy构建在Windows 10上失败

时间:2017-02-13 16:33:07

标签: python kivy

尝试使用python 3.6在Windows 10上设置kivy,问题如下所示。

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

这是该过程继续进行并且尝试构建但是失败的唯一问题,我试图在这里发布完整的终端输出但是它超出了站点的字符限制lol。除此之外,Windows并不认识这个命令我真的不明白这个问题或者知道如何修复它。

C:\Users\suroh>python -m pip install kivy
Collecting kivy
Using cached kivy-1.9.1.tar.gz
Requirement already satisfied: Kivy-Garden>=0.1.4 in c:\python36-32\lib\site-packages (from kivy)
Requirement already satisfied: requests in c:\python36-32\lib\site-packages (from Kivy-Garden>=0.1.4->kivy)
Building wheels for collected packages: kivy
Running setup.py bdist_wheel for kivy ... error
Complete output from command C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\suroh\\AppData\\Local\\Temp\\pip- build-8971r5gl\\kivy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\suroh\AppData\Local\Temp\tmp18y3lc72pip-wheel- --python-tag cp36:
Using distutils

Detected Cython version 0.23
User distribution detected, avoid portable command.
Windows platform detected, force GLEW usage.
Using this graphics system: OpenGL
WARNING: A problem occured while running pkg-config --libs --cflags gstreamer-1.0 (code 1)

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

WARNING: A problem occured while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
----------------------------------------------------------------------------
Failed building wheel for kivy
Running setup.py clean for kivy
Failed to build kivy
Installing collected packages: kivy
Running setup.py install for kivy ... error
Complete output from command C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\suroh\\AppData\\Local\\Temp\\pip-build-8971r5gl\\kivy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\suroh\AppData\Local\Temp\pip-jyo4b4xe-record\install-record.txt --single-version-externally-managed --compile:

知道问题是什么,如果是,我该如何解决?除了降级到python 2并尝试这种方式。

1 个答案:

答案 0 :(得分:0)

目前(Kivy 1.9.1)没有适用于Python 3.5及更高版本(32位和64位)的版本。您可以在存储车轮的pypi处进行检查。

但您可以使用nightly wheels。由于新版本有点接近,因此它们比目前的稳定版更加稳定。 :)