原文链接:https://www.f2er.com/ubuntu/356409.htmlMost users of PyOpenGL should use pip to install PyOpenGL automatically. 采用下面的命令行
$ pip install PyOpenGL PyOpenGL_accelerate安装好以后 跑程序的时候出现undefined function
异常
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
解决方案:安装 undefined functionpython-opengl
命令行 :
sudo apt-get install python-opengl