Ask Your Question
0

How to uninstall OpenCV (Python)

asked 2016-05-27 07:29:13 -0600

Hilman gravatar image

I have problem in uninstalling OpenCV. I have installed OpenCV 3 using the tutorial from here. I am installing it with Python binding and it is installed within a Python virtual environment. My system is Mac El Capitan

Now, I want to reinstall/recompile it, because I have some problems in compiling it in C++ (and also because I do want to experiment with the new module that comes with it). In my /usr/local/ folder, there is an include folder, but there is no opencv folders whatsoever. I think I also have the same problem with the /usr/lib/ folder of mine. I managed to find some of the header files, but it is inside the folder opencv I have downloaded before (from the source) and not inside the usr/local/include/ in which it should have been.

I have tried to sudo make uninstall, but got this error:

Scanning dependencies of target uninstall
CMake Error at cmake_uninstall.cmake:6 (MESSAGE):
  Cannot find install manifest:
  "/Users/hilman_dayo/opencv/build/install_manifest.txt"


make[3]: *** [CMakeFiles/uninstall] Error 1
make[2]: *** [CMakeFiles/uninstall.dir/all] Error 2
make[1]: *** [CMakeFiles/uninstall.dir/rule] Error 2
make: *** [uninstall] Error 2

So, what step should I take in deleting the OpenCV, and from there, delete my virtual environment so I can reinstall from scratch? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-11 08:42:38 -0600

DevelopB gravatar image

Working with similar issue. But this below command helps (make uninstall will be applicable in case the installation done through make): sudo apt-get autoremove opencv-doc opencv-data libopencv-dev libopencv2.4-java libopencv2.4-jni python-opencv libopencv-core2.4 libopencv-gpu2.4 libopencv-ts2.4 libopencv-photo2.4 libopencv-contrib2.4 libopencv-imgproc2.4 libopencv-superres2.4 libopencv-stitching2.4 libopencv-ocl2.4 libopencv-legacy2.4 libopencv-ml2.4 libopencv-video2.4 libopencv-videostab2.4 libopencv-objdetect2.4 libopencv-calib3d2.4

Above one should help (it is specifically for 2.4 version). Below ones might be useful. ( I see that below commands executing succesfully for me but even after executing, corresponding lib files still retain in the /usr/local/lib..)

sudo apt-get purge libopencv* sudo apt-get purge opencv*

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-05-27 07:29:13 -0600

Seen: 17,055 times

Last updated: Sep 11 '16