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
  • 95
  • 1
  • 1
  • 9

2 Answers2

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
  • 463
  • 2
  • 8
  • 17
  • +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
0

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

  • how i can solve it – Muhhammmad khan May 29 '23 at 07:25
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 29 '23 at 13:12
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/34463285) – Wouter Jun 02 '23 at 10:34