首页 >> 知识 >> 如何在mac中卸载OpenCV

如何在mac中卸载OpenCV

我是这样安装OpenCV的

代码语言:javascript复制#After downloading OpenCV-3.0, in the directory:echo "#define GTEST_USE_OWN_TR1_TUPLE 1" | cat > temp1cat modules/ts/include/opencv2/ts/ts_gtest.h > temp2cat temp1 temp2 > modules/ts/include/opencv2/ts/ts_gtest.hmkdir buildcd buildcmake .. -Wno-devmake -j8 && sudo make install#Update your bash_profile:~$ echo "export PYTHONPATH=/usr/local/lib/python2.7/site-packages/:$PYTHONPATH" >>~/.bash_profile#Close and open the Terminal#Open python console and try to import cv2 to test if everything works~$ python import cv2

版本不稳定并出错我想卸载它以避免在使用brew安装opencv时出现问题,我应该直接删除该文件夹吗?

THis当我这样做的时候我得到了什么

代码语言:javascript复制cd build make uninstall-- Uninstalling "/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"CMake Error at cmake_uninstall.cmake:20 (MESSAGE): Problem when removing "/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"make[3]: *** [CMakeFiles/uninstall] Error 1make[2]: *** [CMakeFiles/uninstall.dir/all] Error 2make[1]: *** [CMakeFiles/uninstall.dir/rule] Error 2make: *** [uninstall] Error 2
网站地图