Search code examples
pythonpyopengl

problem with pyopengl in linux


I am a beginner.
I want to use pyopengl in linux but I have a problem.
I try to import pyopengl module as below :

from OpenGl.GL import *

but interpreter shows this error message :

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named OpenGl.Gl

what should I do?


Solution

  • Python is a case-sensitive language. Both G and L should be uppercase letters:

    from OpenGL.GL import *