2017-02-04 35 views
0

Kivy 1.9.1と1.9.0を両方ともPython 3.6と3.5にインストールしようとしましたが、すべて同じエラーがあります。私のインストールプロセスは次のとおりです。WindowsでKivyをインストールするとエラーが発生する

1)Kivyが のpython -mピップインストールのdocutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew のpython -mピップインストール--upgradeピップホイールsetuptoolsのインストール のpython -mピップ依存関係しますcython == 0.23

2)のVisual C++ 2015のビルドツール http://landinghub.visualstudio.com/visual-cpp-build-tools

3)Kivy のpython -mピップkivyをインストール

誰でもトンの原因とされるものに私を指すことができますheseエラー、それらを調整する方法 私はKivyのエラーに関する他のSOの投稿を見ましたが、これらに固有のものは見つかりませんでした。このエラーの途中について

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" 

:私はコンソールで見ることができます


のみエラーが (以下第五&第7行)(インストールの開始時に)このです
(以下6 & 7行):

Generating code 
Finished generating code 
cythoning C:\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\kivy\graphics/context.pyx to C:\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\kivy\graphics\context.c 
building 'kivy.graphics.context' extension 
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python36-32\include -IC:\Python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /TcC:\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\kivy\graphics\context.c /Fobuild\temp.win32-3.6\Release\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\kivy\graphics\context.obj 
context.c 
c:\users\davidk\appdata\local\temp\pip-build-1_wuafui\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory 
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2 

---------------------------------------- 
Failed building wheel for kivy 
Running setup.py clean for kivy 
Failed to build kivy 
Installing collected packages: Kivy-Garden, kivy 
Found existing installation: Kivy-Garden 0.1.1 
    Uninstalling Kivy-Garden-0.1.1: 
    Successfully uninstalled Kivy-Garden-0.1.1 
Running setup.py install for kivy ... error 
Complete output from command C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\davidk\\AppData\\Local\\Temp\\pip-build-1_wuafui\\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\davidk\AppData\Local\Temp\pip-q_vg82_f-record\install-record.txt --single-version-externally-managed --compile: 
    Using distutils 

そしてこの(最後の2行)(インストールの終わりに):

Generating code 
Finished generating code 
skipping 'C:\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\kivy\graphics\context.c' Cython extension (up-to-date) 
building 'kivy.graphics.context' extension 
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python36-32\include -IC:\Python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /TcC:\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\kivy\graphics\context.c /Fobuild\temp.win32-3.6\Release\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\kivy\graphics\context.obj 
context.c 
c:\users\davidk\appdata\local\temp\pip-build-1_wuafui\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory 
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2 

---------------------------------------- 
Command "C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\davidk\\AppData\\Local\\Temp\\pip-build-1_wuafui\\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\davidk\AppData\Local\Temp\pip-q_vg82_f-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\davidk\AppData\Local\Temp\pip-build-1_wuafui\kivy\ 


その関連がある場合は、コンソールに記載されているビルド構成は次のとおりです。

running build_ext 
Build configuration is: 
* use_rpi = 0 
* use_mali = 0 
* use_egl = 0 
* use_opengl_es2 = 0 
* use_opengl_debug = 0 
* use_glew = 1 
* use_sdl2 = 0 
* use_ios = 0 
* use_mesagl = 0 
* use_x11 = 0 
* use_gstreamer = 0 
* use_avfoundation = 0 
* use_osx_frameworks = 0 
* debug_gl = 0 
* debug = False 

答えて

2

のPython 3.6と3.5はまだkivyには使用できません。 システムにkivyをインストールするにはPython 3.4を試してください。

+0

私はどこかのドキュメントでKivyが3.5と互換性があると思ったが、それは間違いだと思う! 3.4とうまくいった、ありがとう! – DaveK

+0

いつもDaveKを歓迎します – stone

0

ビルド設定ではuse_glew = 1と表示され、エラーは'GL/glew.h': No such file or directoryです。

あなたはGLEWをインストールする必要があり、そして私はあなたがこれらの命令を使用することができるはずだと思う:http://sites.fas.harvard.edu/~lib175/pages/visstudio.html

関連する問題