问题描述
我已经使用 virtualenv 从源代码安装了 opencv,但是我遇到了一些错误并需要重新安装它.我尝试使用 sudo find/-name "opencv" -exec rm {} \;
删除所有文件,并检查是否使用 pkg-config --modversion opencv
删除了包>,它说找不到,但是当我用 python3
打开终端并输入 import cv2
然后 print(cv2.__version__)
,终端返回4.0.0
.如何完全删除opencv?我使用的是 Ubuntu 18.04 LTS.
I've installed opencv from source using a virtualenv, however I faced some errors and needed to reinstall it. I tried removing all the files with sudo find / -name "opencv" -exec rm {} \;
and checked if the package was removed with pkg-config --modversion opencv
, and it said it could not be found, but when I open the terminal with python3
and enter import cv2
then print(cv2.__version__)
, the terminal returns 4.0.0
. How can I completely remove opencv? I'm on Ubuntu 18.04 LTS.
推荐答案
发现build文件夹里没有卸载,问题解决!
I found out that I hadn't uninstalled in the build folder, problem solved!
这篇关于找不到OpenCV但可以导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!