python - Ubuntu 18.04 上的 KivyMD 安装错误

标签 python ubuntu kivy

我尝试使用 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/

相关文章:

ruby-on-rails - Rails API 404 错误 - 使用 Capistrano、Nginx 和 Passenger 部署

python - 属性错误 : 'MainRouter' object has no attribute '_disabled_count'

python - 在python pandas的一列中转换多维列表

python - 如何解决 ImportError : dlopen(): Symbol not found:. ... 预期在:平面命名空间

python - 在 python 中将 XML 编辑为字典?

python - 在Python循环内动态创建变量

java - 使用 PyJnius 从 Python 实现 Java 接口(interface)

python - 为什么我的一些 html 标签在 css 之后,而另一些则没有?

java - 在 Linux 中将 Java URL 转换为有效的文件路径

linux - 我下载了 stip-2.0 linux,我尝试执行 "script.sh",但出现此错误 ./bin/stipdet :1: ./bin/stipdet:syntax error :"("unexpected