I am building a barcode scanner. When i write:
from pyzbar.pyzbar import decode
It gives the following error:
ImportError Traceback (most recent call last)
ImportError: Unable to find zbar shared library
I am writing this code on google colab(windows). But when i do
pip install zbar
it gives another error and does not install zbar.
Source: Python Questions
One Reply to “from pyzbar.pyzbar import decode gives error while running it on google colab”
!apt install libzbar0
!pip install pyzbar
from pyzbar.pyzbar import decode