Mac+anaconda3(python3.6)安装opencv3 发表于 2017-12-13 | | 阅读次数 方法1:Homebrew 安装brew install opencv31234# Easy install for beginnersbrew install opencv3 --with-contrib # For intermediate and advanced users. brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5 将 cv2.so 复制到 anaconda3 的 python 库下1cp /usr/local/Cellar/opencv/3.3.1_1/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so /Users/tuzkimo/anaconda3/lib/python3.6/site-packages/cv2.so 方法2:conda 安装1conda install -c conda-forge opencv 测试是否安装成功12>>> import cv2>>> print(cv2.__version__) 若不报错且输出 3.3.1 则安装成功。