我安装了sip和PyQt但是当我执行像python tutorial.py
这样的python代码时,请接受此错误。我用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
答案 0 :(得分:0)
我通过删除Python并使用macPorts安装python和pyqt解决了这个问题。