Mayavi on OS X Mountain Lion 10.8.5

1. Get homebrew: http://brew.sh/
2. Install homebrew’s version of python:

brew install python

(You should probably get SciPy too: http://fonnesbeck.github.io/ScipySuperpack/)
3. Change path so that /usr/local/bin is listed first: /etc/paths

/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin

4. Close console and open again to get new path.
5. Install pyqt:

brew install pyqt

6. Install version 5.10.1 of vtk (6.0.0 is currently not working):

brew tap  homebrew/science
brew versions vtk #list versions of vtk
cd /usr/local/Library/Taps/homebrew-science/ #so that git finds vtk repository
git checkout 27a4327 /usr/local/Library/Taps/homebrew-science/vtk.rb #checkout version 5.10.1
homebrew install vtk

7. Install mayavi:

pip install mayavi

8. Install ipython:

easy_install ipython

9. Run your mayavi plot:

ipython
execfile('file.py')

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>