- Importerror Unable To Find Zbar Shared Library Macos
- Importerror Unable To Find Zbar Shared Library Machine
Environmental description
Window 7, Python 3.6.5
Raise ImportError ('Unable to find zbar shared library') ImportError: Unable to find zbar shared library The file zbarlibrary.py is definitely in the above path. A simple zbar wrapper. In some case zbarlight will not be able to detect the 1D or 2D code in an image, one of the known cause is that the image background color is the same as the foreground color after conversion to grey scale (it’s happen on images with alpha channel).
Problem description
When importing based on python, the following error is reported:
Sometimes, similar errors are reported:
problem analysis
This kind of problem is usually when installing the library, the security is not complete, or the installed library is covered or damaged, so the corresponding class library cannot be known.
Problem solving
It can be seen from the above instructions that the class library has been installed. However, due to its problems, it needs to be re installed.
Uninstall first
pip uninstall Pillow
Then re install:
pip install Pillow
verification
Then re import the image to find that everything is OK.
Importerror Unable To Find Zbar Shared Library Macos
summary
If it has been installed but cannot be found, it is likely that the installation is damaged and needs to be re installed.