how to change opencv library path
Have you "installed" python via homebrew. This doesn't actually install python but sets up a number of things so the built in python plays nicely with homebrew.

sudo brew install python


This fixed a couple of these sort of problems for me when getting iPython working.