ubuntu20.04怎么卸载opencv
时间: 2023-11-10 15:00:07 浏览: 411
适用于Ubuntu 20.04的opencv-3.3.1资源
5星 · 资源好评率100%
在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目录路径>
```
阅读全文