Can't install zbar

I am trying to use the qrtools module with Python 3.4.2 on my Raspberry Pi 2, however it cannot work as I don't have the module installed zbar

. Attempt

pip-3.2 install zbar

      

Gives the error message shown in the picture

sudo pip-3.2 install zbar

      

gives a similar error

Any ideas?

(I have it installed with Python 2.7) enter image description here

UPDATE: both libzbar-dev and python3-dev have been updated. Yet...

No module named  'zbar' 

      

+3


source to share


1 answer


Assuming you are using a debian derivative (like ubuntu) you need to install the zbar

developement package containing the header filezbar.h

$ sudo apt-get install libzbar-dev

      

for redhat / fedora systems:



$ sudo yum install zbar-devel

      

and maybe the python dev package:

$ sudo apt-get install python3-dev

      

+8


source







All Articles