您的位置:首页 > 编程语言 > Python开发

2017: win7 安装最新版 opencv 3.2 based on python2.7

2017-04-10 18:49 459 查看
The memo for install opencv 3.2 in win7 environment

Install the python2.7, download from the website, must install win32, not arm64.
download website: https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi
download the python packet install tool: https://pypi.python.org/pypi/setuptools#downloads
run cmd : pip install wheel in the win32 cmd 
download the numpy: https://pypi.python.org/packages/32/15/5dac23340abe95eae4e819f1575fb9be6b87ea92bf31ca808b41119d0346/numpy-1.12.1-cp27-none-win32.whl#md5=906d8d8e1cb6a5056e0405d5b54d6440
run the cmd: C:\Windows\System32>pip install d:/software/numpy-1.12.1-cp27-none-win32.whl

Download latest OpenCV release from sourceforge site and double-click to extract
it.
Goto opencv/build/python/2.7 folder.
Copy cv2.pyd to C:/Python27/lib/site-packages.
Open Python IDLE and type following codes in Python terminal.

>>> import cv2

>>> print cv2.__version__

OK.
         install matplotlib

python -m pip install -U pip setuptools
python -m pip install matplotlib
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: