Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚在 debian linux 上使用 apt-get 安装了它
apt-get install libqt4-opengl
PyQt4 的其余部分可用,但我无法使用这个新模块。
from PyQt4 import QtOpenGL
引发 ImportError。知道该怎么做吗?
您是否忘记安装 Python 绑定?
apt-get install python-qt4-gl
对于 Python3,我必须这样做sudo apt-get install python3-pyqt4.qtopengl
sudo apt-get install python3-pyqt4.qtopengl