fatal error C1083: Cannot open include file: 'magic.h': No such file or directory

前提是你 提交于 2019-12-24 21:15:37

问题


trying to run a django server on my windows 10 computer.

When I execute python manage.py runserver, I get the following error:

fatal error C1083: Cannot open include file: 'magic.h': No such file or directory

I'm running 64 bit python 3.5, on Windows 10.

Here is the picture of the error:


回答1:


This issue was discussed in GitHub: https://github.com/ahupp/python-magic/issues/154

It seems that solution is to reinstall libmagic "pip install libmagic" and/or "pip install python-magic" (the environment I work with uses both) and download Windows-specific file from https://pypi.python.org/pypi/python-magic-bin/0.4.14 and install that with "pip install " to your Python-environment.



来源:https://stackoverflow.com/questions/46859234/fatal-error-c1083-cannot-open-include-file-magic-h-no-such-file-or-director

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!