A long time ago I managed to get opencv-python 3 working with python 3.4 on windows (which was a struggle). I wrote a lot of good code, then lost my working file system. I simply cannot reproduce a working system with a new install of python 3.5 on windows. The sad moment is when I try to import cv2: `ImportError: DLL load failed: The specified module could not be found.`
Any help would really be hugely appreciated as I've been at this for way too long. Here are answers to the usual questions:
- Microsoft Windows [Version 10.0.10240]
- Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32 bit (Intel)] on **win32**
- pip shows that opencv-python (3.0.0) is installed
- I installed it from the wheel on Gohlke's site: opencv_python‑**3.0**.0‑**cp35**‑none‑**win32**.whl
- I have these entries in my PATH : C:\Python35\Scripts\; C:\Python35\; %OPENCV_DIR%\bin;
- I have the environment variable: OPENCV_DIR = C:\opencv\build\x64\vc12\
(and I've tried the variants with **x86** and **vc11**)
- from python, it can find the module:
>>>> import imp>>>> imp.find_module('cv2')> (<_io.BufferedReader name='C:\\Python35\\lib\\site-packages\\cv2.cp35-win32.pyd'>, 'C:\\Python35\\lib\\site-packages\\cv2.cp35-win32.pyd', ('.cp35-win32.pyd', 'rb', 3))
I tried all the steps again on a second machine (all the same as above except Windows 8.1). Every other package I install works fine (numpy, matplotlib, flask, more). Same problem. How do I debug this? (Thank you for looking at this problem).
↧