Python pip安装kivy时出现致命错误C1083:无法打开包括文件:'GL/glew.h':没有那个文件或目录。

3

我想要安装kivy

从命令行中,我输入:

pip install cython
pip install pygame
pip install kivy

安装Cython成功,安装Pygame成功,但是当我安装Kivy时,出现了错误信息:
fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory

     error: command 'C:\\Users\\Ray\\AppData\\Local\\Programs\\Common\\Microsof
\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

我的环境:操作系统为Windows 8.1 64位,Python版本为2.7 32位。有什么建议吗?


2
看起来你需要这个:http://glew.sourceforge.net/index.html - Klaus D.
1个回答

0
有点晚了,但我在Windows上遇到了同样的问题。解决方案可能会对某些人有所帮助:
我在requirements.txt中使用以下条目:
pygame
kivy.deps.sdl2
kivy.deps.glew
kivy.deps.gstreamer
kivy.deps.angle
kivy==1.10.0

我是这样安装它们的:

$ pip install -r requirements.txt

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接