安装kivy时出错

时间:2017-04-20 16:54:51

标签: python visual-studio kivy

我正在尝试安装kivy来开始我的项目,但是当我做

pip install kivy

它会安装一段时间并将此错误抛给我

c:\users\user\appdata\local\temp\pip-build-r0fj_elc\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h':
  error: command 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

 ----------------------------------------
 Failed building wheel for kivy

最终以

结束
c:\users\user\appdata\local\temp\pip-build-r0fj_elc\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\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

----------------------------------------
Command "d:\pycharmprojects\environments\scraptesting\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\User\\AppData\\Local\\Temp\\pip-build-r0fj_elc\\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\User\AppData\Local\Temp\pip-wk6wljj6-record\install-record.txt --single-version-externally-managed --compile --install-headers d:\pycharmprojects\environments\scraptesting\include\site\python3.5\kivy" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-build-r0fj_elc\kivy\

(scrapTesting) D:\PycharmProjects\Environments\scrapTesting\splash_testing>

任何帮助,我也在关注installlation

的kivy文档

1 个答案:

答案 0 :(得分:0)

我通过安装wheel

解决了这个问题

我不会在3.5或者以上的文档中工作,所以你必须从列表中然后在终端上安装.whl

pip install YourPackage.whl