问题
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?
回答1:
Did you forget to install the Python bindings?
apt-get install python-qt4-gl
回答2:
For Python3, I had to do sudo apt-get install python3-pyqt4.qtopengl
来源:https://stackoverflow.com/questions/1419650/just-installed-qtopengl-but-cannot-import-it-from-python