Rock
Rock

Reputation: 107

DLL Load failed error when installing opencv for Python 3.6.3 on Windows 10

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?

Upvotes: 1

Views: 215

Answers (2)

Muhhammmad khan
Muhhammmad khan

Reputation: 1

File "C:\Users\Muhammad Khan\AppData\Roaming\Python\Python38\site-packages\mediapipe\python_init_.py", line 17, in from mediapipe.python._framework_bindings import resource_util

Upvotes: 0

Alex Smith
Alex Smith

Reputation: 473

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.

Upvotes: 1

Related Questions