简体   繁体   中英

How to update OpenCV 3.4.2 to OpenCV 4 or latest stable version?

I have installed OpenCV 3.4.2 successfully by following the tutorial given here:

https://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/

Now, I would like to update to openCV 4 or the latest stable version.

Do I need to uninstall 3.4.2 first? If so, how should I uninstall it.

I am afraid to creating another virtual environment and installing version 4 or master package from github by following the same steps might create conflicts. Please advice.

Working on Ubuntu 16.04 LTS, python 3.5

For Python interface, I guess you can try something like pip install opencv-python==4.0.0.21 . Note, you might need to run pip3 install opencv-python==4.0.0.21 depending upon your pip version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM