I'm having trouble running mayavi in python 3.3
When running my program with python3 (or python3.3) i get
from mayavi import mlab as ml
ImportError: No module named 'mayavi'
To get numpy and matplotlib to work, i used:
sudo apt-get install python3-"missing module"
But the usual way to install mayavi is just
sudo apt-get install mayavi2
And python3 doesn't find it....
Does anyone know a way to get mayavi to work with Python3? Is it not supported yet?
I have tried both
import mayavi.mlab as ml
from mayavi import mlab as ml
Both give me the same error
Any clarification would be greatly appreciated :)
Today, Mayavi is not supported in python3.
See also this github issue:
https://github.com/enthought/mayavi/issues/84
Mayavi can work with python 3 now. You will need VTK 7.0 or higher compiled for python 3 support. Then you can just install mayavi with pip. pip install mayavi
Installing vtk may prove somewhat difficult. You need to make sure to change the PYTHONPATH
variable, and build vtk with tcl, tk, and python 3 support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With