0

我安装了 sip 和 PyQt,但是当我执行类似的 python 代码时python tutorial.py,出现此错误。我用 brew install 和 configure.py 安装了 pyqt。

Traceback (most recent call last):
  File "untitled.py", line 4, in <module>
    from PyQt4 import QtCore, QtGui
ImportError: dlopen(/Library/Python/2.7/site-packages/PyQt4/QtCore.so, 2): Symbol not found: __ZN10QArrayData11shared_nullE
  Referenced from: /Library/Python/2.7/site-packages/PyQt4/QtCore.so
  Expected in: flat namespace
 in /Library/Python/2.7/site-packages/PyQt4/QtCore.so
4

1 回答 1

0

我通过删除 Python 并使用 macPorts 安装 python 和 pyqt 解决了这个问题。

于 2013-03-22T09:22:18.980 回答