Ask Your Question

Revision history [back]

Hi

I was in the same situation. It is necessary to execute the commands in the WinPython Powershell Prompt, otherwise none of those methods that you said would work (I have tried also for a long period of time). It seems to be the reason that the Winpython is portable by itself, and doesn't recognize what libraries you have outside (My theory, taking in consideration that it has and execute its own python version inside). So try these commands there pip install opencv-python (for basic open cv) or pip install opencv-contrib-python (for open cv + libraries of contributors.

Good luck

Source: https://stackoverflow.com/questions/51077327/import-error-while-importing-cv2-in-spyderpython-3-6