Install python3-opengl by entering the following commands in the terminal:
sudo apt update sudo apt install python3-opengl
Description:
Python bindings to OpenGL (Python 3)
PyOpenGL is a cross-platform open source Python binding to the standard OpenGL API providing 2D and 3D graphic drawing. PyOpenGL supports the GL, GLU, GLE, and GLUT libraries. The library can be used with the Tkinter, wxPython, FxPy, and Win32GUI windowing libraries (or almost any Python windowing library which can provide an OpenGL context). . This is the Python 3 version of the package.
Homepage: http://pyopengl.sourceforge.net
Version: 3.1.0+dfsg-1
Section: universe/python