1

I have python 3.6.3 32-bit version running on windows 10 64-bit machine.

python version info

Since the opencv found on this official website only supports python 2.7, I read here that I can use the following method to install opencv for python 3.6

However when I try to import cv2 in python, I get the following error:

>>> import cv2
  Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  ImportError: DLL load failed: The specified module could not be found.

I also tried downloading opencv for python 3.6 from this unofficial site and following these instructions.

I am still getting the same error. Can somebody help me fix this?

Rock
  • 39
  • 1
  • 1
  • 6

1 Answers1

1

The problem is that you are using 32-bit Python distribution on a 64-bit Windows machine, so it can't load IA 32-bit .dll on an AMD 64-bit platform.

Change the Python distribution to a 64-bit one and hopefully it should work.

Alex Smith
  • 353
  • 1
  • 6
  • 16
  • +1 Thanks! I upgraded to python 3.6.5 64 bit version. Updated my PATH variable aopennd re-installed numpy, matplotlib and OpenCV using pip install. It works now – Rock Jun 24 '18 at 06:41