Python-magic installation error - ImportError: failed to find libmagic

Go here and download the file "python_magic_bin-0.4.14-py2.py3-none-win32.whl", then

pip install python_magic_bin-0.4.14-py2.py3-none-win32.whl

now python-magic works

enter image description here


I know this is a Windows question, but i wanted to share a Debian solution:

apt-get install libmagic-dev

Kind regards.


The below original answer is now outdated. Please simply follow the instructions denoted under the "dependencies" section.


ORIGINAL ANSWER:

I was able to solve this problem by moving the 3 files from GNUWin32 project to a separate directory (not the \system32 directory the docs suggest) and adding them to the PATH environment variable