python卸载opencv,如何在Mac中卸载OpenCV

I installed OpenCV this way

#After downloading OpenCV-3.0, in the directory:

echo "#define GTEST_USE_OWN_TR1_TUPLE 1" | cat > temp1

cat modules/ts/include/opencv2/ts/ts_gtest.h > temp2

cat temp1 temp2 > modules/ts/include/opencv2/ts/ts_gtest.h

mkdir build

cd build

cmake .. -Wno-dev

make -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

The version is not stable and making errors I want to uninstall it to avoid problem when I install opencv using brew, should I just delete the folder ?

THis what I get when i did

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 1

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

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

make: *** [uninstall] Error 2

解决方案

If you used Homebrew to install you can use this command.

brew uninstall opencv3

You will not have to remove any directory such as /usr/local/Cellar/opencv3

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值