Exception Value:failed to find libmagic. Check your installation in windows 7

前端 未结 5 1901
不知归路
不知归路 2021-02-05 04:48

When I am trying to open django admin panel this error is showing:

ImportError at /admin/
failed to find libmagic.  Check your installation
Request Method: GET
R         


        
5条回答
  •  甜味超标
    2021-02-05 05:25

    Go here and then:

    For Windoes 32bit, download the file "python_magic_bin-0.4.14-py2.py3-none-win32.whl" and run

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

    For Windows 64bit, download "python_magic_bin-0.4.14-py2.py3-none-win_amd64.whl" and run

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

    now python-magic works

    EDIT: As suggested in the comments, this also works:

    pip install python-magic-bin==0.4.14
    

提交回复
热议问题