python使用pyzbar时报错如下:

 File "/usr/local/lib/python3.5/dist-packages/pyzbar/zbar_library.py", line 65, in load
    raise ImportError('Unable to find zbar shared library')
ImportError: Unable to find zbar shared library

ubuntu18.04不会出现该问题

ubuntu16.04安装方式

sudo apt-get install libzbar-dev
pip install zbar

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐