Python Kivy安装找不到GL/GL.h?

Python Kivy安装找不到GL/GL.h?,python,kivy,Python,Kivy,我只是想安装kivy来测试它并制作一些应用程序 我安装了cython和其他东西 然后我在终端上输入(ubuntu 12.04): 我的回答是: Searching for kivy Reading http://pypi.python.org/simple/kivy/ Best match: Kivy 1.2.0 Downloading http://pypi.python.org/packages/source/K/Kivy/Kivy-1.2.0.tar.gz#md5=468da8a353c2

我只是想安装kivy来测试它并制作一些应用程序
我安装了cython和其他东西
然后我在终端上输入(ubuntu 12.04):

我的回答是:

Searching for kivy
Reading http://pypi.python.org/simple/kivy/
Best match: Kivy 1.2.0
Downloading http://pypi.python.org/packages/source/K/Kivy/Kivy-1.2.0.tar.gz#md5=468da8a353c2ea4936eb92d71403c960
Processing Kivy-1.2.0.tar.gz
Running Kivy-1.2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rcrkeK/Kivy-1.2.0/egg-dist-tmp-xdOqxi
[INFO   ] Kivy v1.2.0
WARNING: GLES 2.0 headers are not found
Fallback to Desktop opengl headers.
Build configuration is:
 * use_opengl_es2  =  False
 * use_glew  =  False
 * use_opengl_debug  =  False
 * use_mesagl  =  False
Generate config.h
Generate config.pxi
In file included from /tmp/easy_install-rcrkeK/Kivy-1.2.0/kivy/graphics/texture.c:273:0:
/tmp/easy_install-rcrkeK/Kivy-1.2.0/kivy/graphics/gl_redirect.h:38:22: fatal error: GL/gl.h: El fitxer o directori no existeix
compilation terminated.
 error: Setup script exited with error: command 'gcc' failed with exit status 1
我做错什么了吗?或者我需要安装一些东西吗


另外,对于加泰罗尼亚El-fitxer o directori no Existiex表示抱歉,文件未找到

您可能必须安装mesa common dev,另请参阅:。
如果您有Nvidia卡,则可能需要安装Nvidia-glx-dev。

您可以在freeglut3-dev中包含的文件
glut.h
中尝试相同的问题。再次,请查看包含该文件的文件。

通过apt安装libgl1 mesa dev软件包。您也可能希望查看launchpad中的构建说明:

您是否遵循了Kivy文档的安装指南?您可以尝试从PyPI下载kivy并运行
python setup.py install
,看看是否有任何区别。哈哈。。。Python被许多程序使用,所以如果你随意删除文件,很可能会把整个安装搞砸。解决了我的问题!:D耶!这也解决了我的问题,但该链接不再有效。你好!欢迎来到SO!当您同时提供代码解决方案和解释时,此站点上的答案通常会做得更好:)
Searching for kivy
Reading http://pypi.python.org/simple/kivy/
Best match: Kivy 1.2.0
Downloading http://pypi.python.org/packages/source/K/Kivy/Kivy-1.2.0.tar.gz#md5=468da8a353c2ea4936eb92d71403c960
Processing Kivy-1.2.0.tar.gz
Running Kivy-1.2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rcrkeK/Kivy-1.2.0/egg-dist-tmp-xdOqxi
[INFO   ] Kivy v1.2.0
WARNING: GLES 2.0 headers are not found
Fallback to Desktop opengl headers.
Build configuration is:
 * use_opengl_es2  =  False
 * use_glew  =  False
 * use_opengl_debug  =  False
 * use_mesagl  =  False
Generate config.h
Generate config.pxi
In file included from /tmp/easy_install-rcrkeK/Kivy-1.2.0/kivy/graphics/texture.c:273:0:
/tmp/easy_install-rcrkeK/Kivy-1.2.0/kivy/graphics/gl_redirect.h:38:22: fatal error: GL/gl.h: El fitxer o directori no existeix
compilation terminated.
 error: Setup script exited with error: command 'gcc' failed with exit status 1
sudo apt-get install libgl1-mesa-dev