I previously logged how OpenCV 3.0 could be installed on OS X. Fortunately, setting up Scikit Image 0.12 is easier than that. I’m keeping it on the record here.

First off, change the directory to your source directory, and create a Virtual Environment:

virtualenv .

Create fxpy inside bin directory of the Virtual Environment with the following content:

# what real Python executable to use
PATHTOPYTHON=/usr/bin/ # `which python` and find out

ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"`

# now run Python with the virtualenv set as Python's HOME
exec $PYTHON "$@"

Wait, why do we need this? Because if we don’t, we will end up with the following error message which is quite self-explanatory:

RuntimeError: Python is not installed as a framework. The Mac OS X backend 
will not be able to function correctly if Python is not installed as a 
framework. See the Python documentation for more information on installing 
Python as a framework on Mac OS X. Please either reinstall Python as a 
framework, or try one of the other backends. If you are Working with 
Matplotlib in a virtual enviroment see 'Working with Matplotlib in Virtual 
environments' in the Matplotlib FAQ.

Needless to say, we have skipped that message. In the end, forget not to change its permission and activate the Virtual Environment.

chmod +x bin/fxpy
source bin/activate

Now go ahead and execute your program by fxpy main.py.