Get mayavi working with Python 3

Today, Mayavi is not supported in python3.

  • http://www.vtk.org/Wiki/VTK/Python_Wrapping_FAQ
  • http://www.vtk.org/Wiki/VTK/Python_Wrapper_Enhancement#Python_3

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.