2013-03-20 64 views
0

我安裝SIP和PyQt的,但是當我執行像python tutorial.py一個Python代碼,避免這些錯誤。我安裝的PyQt與釀造安裝和configure.py兩者。PyQt4的QtCore.so找不到符號錯誤

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

我解決了這個問題,刪除了Python,並用macPorts安裝python和pyqt。