ubuntu20.04怎么卸载opencv
时间: 2023-11-10 17:00:07 浏览: 443
Ubuntu20.04安装opencv4.4.0+opencv-contrib4.4.0 缺失文件
在Ubuntu 20.04上卸载OpenCV,你可以按照以下步骤进行操作:
1. 进入OpenCV的build目录下执行以下命令以删除OpenCV库:
```
sudo make uninstall
```
2. 删除其他与OpenCV相关的项:
```
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*
```
3. 最后,删除build文件夹:
```
sudo rm -r <build目录路径>
```
阅读全文