I've tried the installation of opencv 3 for Python 3+ on the Raspberry Pi. After importing the opencv using import cv2 on Python shell it gives me this error:

ImportError: dynamic module does not define init function (PyInit_cv3)

What could be the possible problem / solution?

1 Answer 1


I have googled for a bit. I found this wonderful, super duper easy tutorial. Try it out and if it works, accept my answer.

  • In keeping with our policy regarding informationless link-only answers, if this post is not edited to contain information that can stand as an answer, however minimal, in 48 hours it will be converted to Community Wiki to simplify having it corrected by the community.
    – Ghanima
    Jun 28, 2017 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.