Getting the below error when I do 'import cv2':
ImportError: libopencv_ml.so.3.4: cannot open shared object file: No such file or directory
ImportError: libopencv_ml.so.3.4: cannot open shared object file: No such file or directory
Asked: 2019-02-10 09:48:45 -0600
Seen: 532 times
Last updated: Feb 10 '19
please rebuild using
cmake -DBUILD_SHARED_LIBS=OFF
(so your cv2.so does no more depend on other opencv so's at runtime)How to uninstall opencv-3.4.0 completely and install opencv-4.0.0?
@manoj4898. You are running python 2 instead of python 3. Are you using raspberry pi?
Not on rasberry pi... I want to know a painless way to uninstall the currently installed opencv-3.4.0....
OK! HEre is good tutorial for you. uninstall
That tutorial is for windows!
Is there any shell command in ubuntu to uninstall opencv?
I found this: sudo make uninstall, but I had deleted the opencv-3.4.0 directory