严重错误C1083:无法打开包含文件:'magic.h':没有此类文件或目录 [英] fatal error C1083: Cannot open include file: 'magic.h': No such file or directory
问题描述
尝试在Windows 10计算机上运行django服务器.
trying to run a django server on my windows 10 computer.
当我执行python manage.py runserver时,出现以下错误:
When I execute python manage.py runserver, I get the following error:
严重错误C1083:无法打开包含文件:'magic.h':没有此类文件或目录
fatal error C1083: Cannot open include file: 'magic.h': No such file or directory
我正在Windows 10上运行64位python 3.5.
I'm running 64 bit python 3.5, on Windows 10.
这是错误的图片:
推荐答案
This issue was discussed in GitHub: https://github.com/ahupp/python-magic/issues/154
似乎解决方案是重新安装libmagic"pip install libmagic"和/或"pip install python-magic"(我使用的环境同时使用)并从
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.
这篇关于严重错误C1083:无法打开包含文件:'magic.h':没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!