Install OpenCV on Raspberry Pi 3B+ for python3.

Spread the love
  • 0


OS – Raspian Buster with desktop and recommended software. Release date 2020-02-13.

Uninstall previous versions

sudo pip3 uninstall opencv-python

Install dependencies

sudo apt-get install libhdf5-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libhdf5-dev
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install libqt4-test

Easy install

At present, OpenCV only supports Raspberry Pi 3B+ is up to version 3.4.6.

pip3 install opencv-python==

Verify installation

python3 -c 'import cv2; print(cv2.__version__)'

OpenCV Documentation


ImportError: /home/pi/.local/lib/python3.7/site-packages/cv2/ undefined symbol: __atomic_fetch_add_8

To fix the error message above, install dependencies as shown above in instructions.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.