#環境
OS: Manjaro 15.12 Capella
pyenv: 20160202-14-g0c4392b
Python: Python 3.5.1 :: Anaconda 2.5.0 (64-bit)
numpy: 1.10.4
#openCVインストール
http://qiita.com/shohohoh/items/4d692d2a92e7db87fed2 と
https://gist.github.com/pohmelie/cf4eda5df24303325b16 を参考にした。
$ cd
$ wget https://github.com/Itseez/opencv/archive/3.1.0.zip
$ wget https://github.com/Itseez/opencv_contrib/archive/3.1.0.zip
$ unzip 3.1.0.zip
$ unzip 3.1.0.zip.1
$ cd opencv-3.1.0
$ mkdir build
$ cd build
$ cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D BUILD_opencv_java=OFF \
-D WITH_IPP=OFF -D WITH_1394=OFF \
-D WITH_FFMPEG=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D BUILD_DOCS=OFF \
-D BUILD_opencv_python2=ON \
-D BUILD_opencv_python3=ON \
-D BUILD_opencv_video=OFF \
-D BUILD_opencv_videoio=OFF \
-D BUILD_opencv_videostab=OFF \
-D PYTHON_EXECUTABLE=$(which python) \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/opencv_contrib-3.1.0/modules ..
$ make -j4
$ sudo make install
$ cd ~/.pyenv/versions/anaconda3-2.5.0/lib/python3.5/site-packages/
$ ln -s /usr/local/lib/python3.5/site-packages/cv2.cpython-35m-x86_64-linux-gnu.so cv2.so
これでpythonからcv2をimportできたら成功
おわり