Python 3.5 ImportError: dynamic module does not define module export function (PyInit_cv2) -


this i'm getting when try import cv2 python3.5 idle. i'm using opencv 3.1.0 python3.5.2 ubuntu 16.04

i tried lots of installing methods no 1 solved problem, had import working on terminal stopped well. might have solution?

import cv2 traceback (most recent call last):   file "<pyshell#0>", line 1, in <module>     import cv2 importerror: dynamic module not define module export function (pyinit_cv2) 

edit: followed tutorials on links:

http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/linux_install/linux_install.html

http://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/

for python3, need provide python init method entrance,

which in cv.py guess. in case,

this file did not exist. copied own google code.

if cv.py not provided,

you may error importerror: dynamic module not define init function (pyinit_cv2) when import cv2 in python3 (no such problem in python2).


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -