Mayavi在我的MacOS 10.12上崩溃。有什么建议吗?
我安装了mayavi和vtk
$ brew install vtk
$ pip install --user mayavi当我在python2.7中运行mayavi2或导入mayavi.lab时,它会崩溃
$ mayavi2
[1] 93511 illegal hardware instruction mayavi2
$ python2 -c "import mayavi.mlab"
[1] 93920 illegal hardware instruction python2 -c "import mayavi.mlab"更新
我发现问题可能是在导入到traitsui.api中的mayavi.preferences.preference_manager中。
$ python2 -c "import traitsui.api"
[1] 2421 illegal hardware instruction python2 -c "import traitsui.api"Update2
更深一点,我发现这是关于“traits.api.Color”.用于traitsui.editors.code_editor
$ python -c "from traits.api.Color; print 'hi'; Color( 0xECE9D8 )"
hi
[1] 6414 illegal hardware instruction python2 -c "from traits.api import Color; print 'hi'; Color(0xECE9D8)"发布于 2017-04-27 16:10:02
感谢@PierredeBuyl的建议。
我试着重新安装pyqt,它现在起作用了!
这些步骤是:
$ brew install pyqt
Error: pyqt-4.11.3 already installed
To install this version, first `brew unlink pyqt`
$ brew unlink pyqt
Unlinking /usr/local/Cellar/pyqt/4.11.3... 78 symlinks removed
$ brew install pyqt
...
$ mayavi2 # now it workshttps://stackoverflow.com/questions/43650819
复制相似问题