![](/img/trans.png)
[英]fatal error C1083: Cannot open include file: 'io.h': No such file or directory
[英]fatal error C1083: Cannot open include file: 'mecab.h': No such file or directory
我嘗試在 Windows 64 位機器上從源代碼和通過 pip 安裝 mecab-python-windows 包。 在這兩種情況下,我都會收到以下錯誤:
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`
我該如何處理這個錯誤? 我在哪里可以找到 mecab.h 文件,我應該把它放在哪里? 我真的很感激任何建議! 謝謝!
mecab-python-windows
未維護,開發已轉移到 PyPI 上的mecab
。 請參閱此處,其中還提到了您遇到的錯誤。 它建議你這樣做:
CPLUS_INCLUDE_PATH=`python-config --prefix`/Headers:$CPLUS_INCLUDE_PATH pip install mecab
我建議你使用 mecab-python3。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.