duplicate-images icon indicating copy to clipboard operation
duplicate-images copied to clipboard

ImportError: failed to find libmagic. Check your installation

Open MiHarsh opened this issue 4 years ago • 1 comments

Hello Sir, I found this project amazing but while using I faced this error

Traceback (most recent call last):
  File "duplicate_finder.py", line 32, in <module>
    import magic
  File "/usr/local/lib/python3.6/dist-packages/magic.py", line 201, in <module>
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

I tried a lot but didn't find any helpful answer. Can you please guide me in this regards ?

MiHarsh avatar Jan 16 '21 04:01 MiHarsh

This worked for me:

pip uninstall python-magic pip install python-magic-bin==0.4.14

fs87123 avatar Jan 20 '22 04:01 fs87123