Ask Your Question

Revision history [back]

So building on sapfira5's answer - the process for me using Anaconda on Windows 10 with Python 2.7 was:

  1. Install Anaconda - selecting python 2.7 and installing the Microsoft VSCode when prompted.
  2. Downloaded the OpenCV 4.0.0 winpack from https://www.opencv.org/releases.html
  3. Click to run the download and extract into dir c:\tools\
  4. Start Anaconda python command prompt from installed icon, and type:
    • cd c:\tools\opencv\build\python
    • python setup.py build
    • python setup.py install
    • copy cv2\python-2.7\cv2.pyd c:\ProgramData\Anaconda2\lib\site-packages
    • copy ..\x64\vc15\bin*.dll c:\ProgramData\Anaconda2\Library\bin

So building on sapfira5's answer - the process for me using Anaconda on Windows 10 with Python 2.7 was:

  1. Install Anaconda - selecting python 2.7 and installing the Microsoft VSCode when prompted.
  2. Downloaded the OpenCV 4.0.0 winpack from https://www.opencv.org/releases.html
  3. Click to run the download and extract into dir c:\tools\
  4. Start Anaconda python command prompt from installed icon, and type:
    • cd c:\tools\opencv\build\python
    • python setup.py build
    • python setup.py install
    • copy cv2\python-2.7\cv2.pyd c:\ProgramData\Anaconda2\lib\site-packages
    • copy ..\x64\vc15\bin*.dll ..\x64\vc15\bin\*.dll c:\ProgramData\Anaconda2\Library\bin