简体   繁体   English

致命错误 C1083:无法打开包含文件:“mecab.h”:没有这样的文件或目录

[英]fatal error C1083: Cannot open include file: 'mecab.h': No such file or directory

I tried installing the mecab-python-windows package both from source and via pip on a Windows 64-bit machine.我尝试在 Windows 64 位机器上从源代码和通过 pip 安装 mecab-python-windows 包。 I get the following error in both cases:在这两种情况下,我都会收到以下错误:

    MeCab_wrap.cxx(3137): fatal error C1083: Cannot open include file: 'mecab.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2`

How can I deal with this error?我该如何处理这个错误? Where could I find the mecab.h file and where should I place it?我在哪里可以找到 mecab.h 文件,我应该把它放在哪里? I would really appreciate any suggestion!我真的很感激任何建议! Thank you!谢谢!

mecab-python-windows is not maintained, development has moved to mecab on PyPI. mecab-python-windows未维护,开发已转移到 PyPI 上的mecab See here , which also mentions the error you are getting.请参阅此处,其中还提到了您遇到的错误。 It suggests you do this:它建议你这样做:

CPLUS_INCLUDE_PATH=`python-config --prefix`/Headers:$CPLUS_INCLUDE_PATH pip install mecab

I would suggest you use mecab-python3.我建议你使用 mecab-python3。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命错误 C1083:无法打开包含文件:'io.h':没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'io.h': No such file or directory 致命错误C1083:无法打开包含文件:'openssl / opensslv.h':没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory 致命错误 C1083:无法打开包含文件:'dlfcn.h':没有这样的文件或目录 PyLPSolve - fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory PyLPSolve MySQLdb/_mysql.c(29): 致命错误 C1083: 无法打开包含文件: 'mysql.h': 没有这样的文件或目录 - MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory Could not install pycocotools in windows: fatal error C1083: Cannot open include file: 'io.h': No such file or directory 错误: - Could not install pycocotools in windows: fatal error C1083: Cannot open include file: 'io.h': No such file or directory error: snappy/snappymodule.cc(31): 致命错误 C1083: 无法打开包含文件: 'snappy-c.h': 没有那个文件或目录 - snappy/snappymodule.cc(31): fatal error C1083: Cannot open include file: 'snappy-c.h': No such file or directory 安装 pygrahviz 的问题“致命错误 C1083:无法打开包含文件:‘graphviz/cgraph.h’:没有此类文件或目录” - Issues installing pygrahviz "fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory" 无法安装mysql客户端1.3.12出现致命错误C1083:无法打开包含文件:mysql.h:无此类文件或目录 - Unable to install mysql client 1.3.12 getting fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory 如何修复 PyAudio、PortAudio 的安装问题:“致命错误 C1083:无法打开包含文件:'portaudio.h':没有这样的文件或目录” - How to fix installation issues for PyAudio, PortAudio: "fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory" 无法安装 matplotlib:致命错误 C1083:无法打开包含文件:'ft2build.h':没有这样的文件或目录 - Can't install matplotlib : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM