树莓派最小图形系统运行GUI程序出错解决

树莓派最小图形系统(如何搭建最小图形系统见前述文章)在运行pyqt5图形程序时出错,错误提示:

ImportError: libGLESv2.so.2: cannot open shared object file: No such file or directory [919] Failed to execute script 'xxx' due to unhandled exception!

网上几乎没有解决方案,研究了一下,可以用以下方法解决:

sudo apt install libgles2-mesa-dev