15

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?

Nathan
  • 6,095
  • 10
  • 45
  • 54

2 Answers2

28

Did you forget to install the Python bindings?

apt-get install python-qt4-gl
John Paulett
  • 15,596
  • 4
  • 45
  • 38
13

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

Nick Crews
  • 837
  • 10
  • 13