yum install gcc gcc-c++ yum install python-devel yum install libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel yum install python-imaging yum install numpy scipy python-matplotlib ipython python-pandas sympy python-nose
tar -zxvf cmake-3.3.0.tar.gz cd cmake-3.3.0 ./configure make make install
yum install gtk*
tar -zxvf opencv-2.4.10.zip cd opencv-2.4.10 ll mkdir release cd release/ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. ll make make install
验证
sys.path.append('/usr/local/lib/python2.6/site-packages/') import cv2