当我尝试在使用mayavi的程序上可视化某些内容时出现以下错误:
CONSOLE OUTPUT:
File "/home/meniwis/syscave/src/python/syscave/gui/flowsim3d.py", line 15,
in <module> from mayavi.modules.scalar_cut_plane import ScalarCutPlane
ImportError: No module named mayavi.modules.scalar_cut_plane
这里的文件是“/home/meniwis/syscave/src/python/syscave/gui/flowsim3d.py:< / p>
line 01:import os
line 02:import sys
line 03:import sip
line 04:if sip.getapi('QString') >1:
line 05: QString=unicode
line 06:
line 07:os.environ['ETS_TOOLKIT'] = 'qt4'
line 08:
line 09:import numpy as np
line 10:from numpy import linspace, pi, cos, sin
line 11:
line 12:try:
line 13: from enthought.mayavi.modules.scalar_cut_plane import ScalarCutPlane
line 14:except ImportError:
line 15: from mayavi.modules.scalar_cut_plane import ScalarCutPlane
我正在使用:
-Ubuntu 13.10
-Python 2.7
-epd-7.3-1-rh5-x86_64, which, as i know, comes with mayavi.
有什么可能导致错误的任何线索?
提前感谢。 素不相识。