Installing VTK 5 for Mayavi with Homebrew

I am trying to install Mayavi for Python on Mac OS X Mavericks using Homebrew and pip. I am stuck due to an obscure VTK related error: I installed VTK 5 with Homebrew using

brew reinstall --python --qt vtk5

      

and tried to install Mayavi with

pip install mayavi

      

but i just get en error output which ends with

ImportError: No module named vtkCommonCorePython

      

I was thinking about the problem with my PYTHONPATH variable, but I cannot find where vtkCommonCorePython is located. My PYTHONPATH

/Users/ft14968/Scripts:/usr/local/lib/python2.7/site-packages:usr/local/opt/vtk5/lib/python2.7/site-packages

      

Is there a way to get around this issue, or install a working VTK binding in Python with Homebrew?

+3


source to share


1 answer


brew reinstall --python --qt vtk5



Check brew info

exactly what formula options are available. For vtk5, the options you are looking for are --with-python --with-qt

. All unrecognized ones are ignored.

+2


source







All Articles