1、Python下载及安装:
https://www.python.org/
一般情况下选择2.7版本的
2、从网站下载NumPy的Windows安装程序:
http://sourceforge.net/projects/numpy/files/
请选择合适的版本。我python为2.7版本的,所以选择了numpy-1.7.0-win32-superpack-python2.7.exe,点击安装即可
3、从网站上下载PIL模块
http://www.pythonware.com/products/pil/
这里我选择的是 Python Imaging Library 1.1.7 for Python 2.7 (Windows only),点击安装
4、从网站上下载opencv
点击安装后,在opencv文件夹中,build->python->2.7 复制2.7下面的所有文件 到C:\Python27\Lib\site-packages 中