ubuntu 卸载opencv
时间: 2023-08-26 10:05:55 浏览: 203
要在Ubuntu上卸载OpenCV,你可以按照以下步骤进行操作:
1. 打开终端。
2. 运行以下命令以卸载OpenCV的旧版本:
```
$ sudo make uninstall
$ cd ..
$ sudo rm -r build
$ 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*
```
这些命令将删除OpenCV的安装文件和相关的库文件。
3. 如果你之前已经删除了OpenCV文件,可以直接进行第二步。
```
$ cd /usr/
$ find . -name "*opencv*" | xargs sudo rm -rf
```
这些命令将在/usr目录下删除与OpenCV相关的文件。
通过执行以上步骤,你将能够在Ubuntu上成功卸载OpenCV。请注意,在执行这些命令之前,请确保你了解自己在做什么,并备份重要的文件。
#### 引用[.reference_title]
- *1* [ubuntu下彻底卸载opencv的方法](https://blog.csdn.net/u012455577/article/details/88353920)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [ubuntu卸载opencv,简单快速,亲测有效](https://blog.csdn.net/libai13/article/details/108360260)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文