Ubuntu卸载OpenCV

Ubuntu卸载OpenCV

  1. opencv安装目录打开终端
sudo make uninstall
  1. 进入build文件
cd ..
sudo rm -r build
  1. 删除相关文件
sudo rm -r /usr/local/include/opencv2 /usr/local/include/opencv /usr/include/opencv /usr/include/opencv2 /usr/local/share/opencv /usr/local/share/OpenCV /usr/share/opencv /usr/share/OpenCV /usr/local/bin/opencv* /usr/local/lib/libopencv*
  1. 卸载/usr中的opencv相关内容
cd /usr/
find . -name "*opencv*" | xargs sudo rm -rf
  1. 移除Python相关项
sudo apt-get remove opencv-doc opencv-data python-opencv

你可能感兴趣的:(环境配置与软件安装,解决方案,1024程序员节)