'No module named 'enthought' issue

I am having problems with plotting a 3D array called 's'. This issue is due to an error telling me that no module named enthought exists although I have already installed mayavi to python, anaconda and spyder. What should I do

from enthought.mayavi import mlab #Imports the module

src = mlab.pipeline.scalar_field(s) #3D module coding part
mlab.pipeline.iso_surface(src, contours=[s.min()+0.1*s.ptp(), ], opacity=0.3)
mlab.pipeline.iso_surface(src, contours=[s.max()-0.1*s.ptp(), ],)

mlab.show() #Shows the 3D plot

Cheers



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source