Francesco Turci
Francesco Turci

Reputation: 837

Installing VTK 5 for mayavi with Homebrew

I am trying to install Mayavi fro Python on Mac OS X Mavericks using Homebrew and pip. I am stuck because of an unclear error related to VTK: I have 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 thought about an issue with my PYTHONPATH variable, but I cannot find where vtkCommonCorePython is located. My PYTHONPATH is

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

Is there a way to circumvent this issue, or to install a working python VTK binding with Homebrew?

Upvotes: 3

Views: 3604

Answers (1)

ianml
ianml

Reputation: 782

brew reinstall --python --qt vtk5

Check brew info for exactly what formula options are available. For vtk5, the options you're looking for are --with-python --with-qt. Anything unrecognized is ignored.

Upvotes: 2

Related Questions