Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
637 views
in Technique[技术] by (71.8m points)

opengl - Just installed QtOpenGL but cannot import it (from Python)

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Did you forget to install the Python bindings?

apt-get install python-qt4-gl

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...