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

论坛 期权论坛 脚本     
匿名技术用户   2021-1-4 01:28   101   0

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
    1. Download latest OpenCV release from sourceforge site and double-click to extract it.
    2. Goto opencv/build/python/2.7 folder.
    3. Copy cv2.pyd to C:/Python27/lib/site-packages.
    4. 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

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP