python2.7+opencv3.1错误参考

2016-01-13  本文已影响0人  joe5006

install opencv for anaconda ipython

python官方文档关于安装python支持的部分

4.[optional] Building python. Set the following python parameters:

2.x版本安装

python2.4.11安装

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler BUILD-NEW-PYTHON-SUPPORT=ON . # 命令行

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler BUILD-NEW-PYTHON-SUPPORT=ON ..

make install -j32以后可以到编译出来的目录下寻找lib/cv2.so,复制到对应的python目录(dist-package等)
拷贝 cv2.so -----> anaconda/python2.7/site-package/cv2.so python就可以利用opencv的库

2.x安装参考

http://www.megalinux.net/compiling-opencv-2-4-on-rhelcentos-5/

stackoverflow上的问题

http://stackoverflow.com/questions/17287250/install-opencv-for-python-multiple-python-versions

上一篇下一篇

猜你喜欢

热点阅读