安装 Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
$ brew doctor
安装 OpenCV
brew install opencv
安装pip
sudo easy_install pip
安装 Pillow
sudo pip install --use-wheel Pillow
ImportError: No module named cv2 报错处理
pip install opencv-python --user -U