导入PyQt4模块

2024-04-19 13:02:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我对PyQt4并不完全陌生,以前运行过它,但现在(在更新到Mac OSX.6之后)并重新安装PyQt4(4.9和sip-4.13.1),每个从PyQt4导入特定内容的程序都会退出并返回错误消息:

Traceback (most recent call last):
  File "helloQt.py", line 6, in <module>
    from PyQt4.QtGui import QApplication, QLabel
ImportError: No module named QtGui

奇怪的是Python.Framework包含QtCore.a的静态库,但只有一个不指定加载内容的普通__init__.py。在

谢谢你的建议 梅利79


Tags: py程序消息内容mostmac错误call