首页 > 解决方案 > Ubuntu 18.04 上的 KivyMD 安装错误

问题描述

我尝试使用 安装 kivymd pip3 install kivymd,但出现错误:

/tmp/pip-build-46hjob8h/kivy/kivy/include/gl_redirect.h:72:13: fatal error: GL/gl.h: No such file or directory
 #   include <GL/gl.h>
             ^~~~~~~~~
compilation terminated.
 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

看来我必须在我的系统上安装与 GL 相关的库。我怎样才能解决这个问题?

标签: pythonubuntukivy

解决方案


使用以下命令安装 OpenGL 头文件:

sudo apt install libglew-dev

推荐阅读