So building on sapfira5's answer - the process for me using Anaconda on Windows 10 with Python 2.7 was:
- Install Anaconda - selecting python 2.7 and installing the Microsoft VSCode when prompted.
- Downloaded the OpenCV 4.0.0 winpack from https://www.opencv.org/releases.html
- Click to run the download and extract into dir c:\tools\
- 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