Skip to content Skip to sidebar Skip to footer

How To Install Simplecv On Osx 10.8

I believe SimpleCV has installed correctly. When I run: sudo pip install SimpleCV And then in python try to import the library, I run into this error: ImportError:

Solution 1:

Yes, you need pygame. These instructions worked for me: http://juliaelman.com/blog/2013/04/02/installing-pygame-on-osx-mountain-lion/

They lead you through installing a number of pygame dependencies (which SimpleCV and OpenCV need as well):

brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
brew tap homebrew/headonly
brew install smpeg --HEAD

You will need XCode, XQuartz, Mercurial (hg) and homebrew to install them.

Finally you will be able to pip install pygame through that command:

sudo pip install hg+http://bitbucket.org/pygame/pygame

Once pygame is installed, you can begin the nightmare of installing OpenCV (also needed by SimpleCV). There are many conflicting recipes out there, and mine won't help you unless you are working with an anaconda Python distribution (you really should, it's an excellent, tidy, and painless way to get the full Python numeric/scientific stack), in which case a search for 'opencv anaconda osx 10.8.4' will bring up my detailed instructions.

Post a Comment for "How To Install Simplecv On Osx 10.8"