【问题标题】:Python pip install kivy fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directoryPython pip install kivy 致命错误 C1083:无法打开包含文件:'GL/glew.h':没有这样的文件或目录
【发布时间】:2015-07-12 05:52:46
【问题描述】:

我要安装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 位。有什么建议吗?

【问题讨论】:

标签: python kivy


【解决方案1】:

oyu 有点晚了,但我在 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-09-22
    • 2018-12-20
    • 2011-12-09
    • 2011-09-23
    • 2019-05-30
    • 2010-09-09
    • 2013-11-29
    相关资源
    最近更新 更多