Forums

Installing pyzbar

So I want to install pyzbar, a Python 3 package for barcode and QR code reading. OK, it's easy:

pip3 install --user pyzbar

But this package requires the shared library libzbar0 to be installed by the command

apt-get install libzbar0

which cannot be executed.

I know there's a preinstalled zbar package for Python 2, but unfortunately I have to use Python 3 only. I guess that this library is already installed somewhere for zbar, but how can I access it?

The install of pyzbar in python3 works fine. What happened when you tried?

For some reason pip3 installed pyzbar into python2.7, not python3.6 directory. I've moved it manually, and now everything works.