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

前端 未结 5 1843
不知归路
不知归路 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:06

    1. Download cygwin. The version of cygwin must as same as python.(exp: Although your OS is Win7 x64, you still should download 32 bit cygwin because your python is 32 bit). link: https://www.cygwin.com/
    2. Install cygwin.
    3. Enter the path of cygwin and copy cygwin1.dll/cyggcc_s-1.dll/cygmagic-1.dll/cygz.dll to C:\Windows\SysWOW64.

提交回复
热议问题