使用pip安装Kivy时出现错误 - Python

5

我正在尝试使用pip和安装kivy,但是我遇到了以下错误:

c:\***\temp\pip-build-7e9b8p\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:\\***\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

有什么建议吗?

在Windows上编译Kivy需要各种依赖项(在Linux和OSX上也是如此,但在这些情况下更容易)。我不知道它们确切是什么。由于这些困难,我们在kivy.org提供了便携式软件包。 - inclement
它非常明确地指出:'GL/glew.h': No such file or directory,这表明您没有安装OpenGL扩展包或者无法找到它。 - Dave
@inclement 我已经按照 https://kivy.org/docs/installation/installation-windows.html# 上的说明(针对 Python 3.5.2 的 Windows 8.1)进行了操作,但是仍然收到类似的消息:fatal error C1083: Cannot open include file: 'GL/glew.h'尽管我已经满足了 glew 依赖项:Requirement already satisfied: kivy.deps.glew...我没有看到任何明显的“便携式包”的链接。 - Magic_Matt_Man
抱歉,我现在理解了轮子的用途,并已经成功使用一个轮子在我的系统上安装并正常运行了Kivy 1.9.x。 - Magic_Matt_Man
1个回答

3

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