我尝试使用 pip3 install kivymd
安装 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 相关的库。
我怎样才能解决这个问题?
最佳答案
使用以下命令安装 OpenGL 头文件:
sudo apt install libglew-dev
关于python - Ubuntu 18.04 上的 KivyMD 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59501352/