python - 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 相关的库。我怎样才能解决这个问题?
解决方案
使用以下命令安装 OpenGL 头文件:
sudo apt install libglew-dev
推荐阅读
- javascript - org.apache.tiles.util.TilesIOException:JSPException 包括路径
- angular - 嵌套的可观察对象在终止后一个接一个地执行
- python - 如何让 groupby 操作正常工作?
- excel - 链接参考单元格以在 excel 中创建新范围
- android - 获得显示旋转的正确方法
- java - JpaRepository,我可以在断言创建的查询字符串时模拟存储库吗?
- r - R Shiny - 使用 DateSlider 动态过滤 ggplot2 图表
- spring - 通过 Spring WebClient 和 HttpComponentsClientHttpConnector 执行 http 请求时出现 NTLM 身份验证问题
- r - R:绘图太大而无法放入窗口
- java - 套接字超时时 TCP 连接会发生什么