Just installed QtOpenGL but cannot import it (from Python)

13,589

Solution 1

Did you forget to install the Python bindings?

apt-get install python-qt4-gl

Solution 2

For Python3, I had to do sudo apt-get install python3-pyqt4.qtopengl

Share:
13,589
Nathan
Author by

Nathan

If you can do a half-assed job of anything, you're a one-eyed man in a kingdom of the blind. - Kurt Vonnegut

Updated on June 24, 2022

Comments

  • Nathan
    Nathan almost 2 years

    I just installed it with apt-get on debian linux with

    apt-get install libqt4-opengl
    

    the rest of PyQt4 is available, but I cant get to this new module.

    from PyQt4 import QtOpenGL
    

    raises ImportError. any idea what to do?