我已經使用我自己的Qt4庫編譯了Python模塊,位於~/opt/qt-4.6.0/, ,但是當我嘗試導入該模塊時,加載的動態庫來自我的MacPorts Qt4安裝。 $ /opt/local/bin/python2.6
>>> import vtk
objc[58041]: Class QMacSoundDelegate is implemented in both /Users/luis/
我成功構建並安裝了VTK-5.4,並使用源自Python的綁定。然而,當我嘗試導入VTK在python它提供了以下錯誤回溯 File "", line 1, in File "/usr/local/lib/python2.6/dist-packages/VTK-5.4.2-py2.6.egg/vtk/init.py", line 41, in from common import * File "