Ask Your Question
1

Delete OpenCV installation in Ubuntu. [closed]

asked Oct 7 '0

ajpaezm gravatar image

Hi,

I installed OpenCV4 using the following command in Ubuntu 20.04:

sudo apt-get install python-opencv

It imports fine, but I need to undo this installation so I can build it from Source like this document states.

I ran the following command:

dpkg --get-selections | grep -v deinstall | grep opencv

Instead of uninstalling all files one by one, I did this:

sudo apt-get --purge remove libopencv*

Would that be enough or should I do something else?

Thanks for any advice!

Preview: (hide)

Closed for the following reason the question is answered, right answer was accepted by supra56
close date 2020-10-07 22:11:35.071819

Comments

R u using raspberry pi?

supra56 gravatar imagesupra56 (Oct 7 '0)edit

2 answers

Sort by » oldest newest most voted
2

answered Oct 7 '0

ajpaezm gravatar image

Thank you! I performed some tests as well and it was imported OK. It is strange, making the build for the install is better if you have other packages that require a cmake build, this way they can find the packages properly. Using the apt-get you can't even find the folder that hosts the OpenCV installation, only a sort of wrapper on the directory of Python.

Preview: (hide)
2

answered Oct 7 '0

supra56 gravatar image

updated Oct 7 '0

Yes. That is sufficiently. It should be ok.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Oct 7 '0

Seen: 10,555 times

Last updated: Oct 06 '20