OpenCV on mac(Yosemite) でハマったこと & 対処法

インストールはすんなり。

pip install opencv

 

ただ、実行時にはまった。

import cv2

と打つと、

 

エラーが出た。

hdf5 が古い、みたいなこと言ってる。

以下のページにあるように、

 

conda update hdf5

 

で解決した。

 

Hi, I had the same problem and reached this issue by googling. I don't know the cause of the problem but conda update hdf5 worked for me.

github.com