mecab-python3をインストールしたいです。その際にエラーが出てしまっています
ここに質問の内容を詳しく書いてください。
python-mecab3をhomebrew→pipを使ってインストールしようとしてます。
pythonのバージョンは3.7.0です。
pythonも同様にhomebrewからpyenv経由でインストールしました。
swigはインストールしてあります。
xcode command line tools もインストールしてあります。
よろしくお願いします。
発生している問題・エラーメッセージ
$ pip install mecab-python3 Collecting mecab-python3 Using cached https://files.pythonhosted.org/packages/ac/48/295efe525df40cbc2173748eb869290e81a57e835bc41f6d3834fc5dad5f/mecab-python3-0.996.1.tar.gz Installing collected packages: mecab-python3 Running setup.py install for mecab-python3 ... error Complete output from command /Users/userthree/.pyenv/versions/3.7.0/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mc/n3j6vpx50md6vvdv1dqlq59h0000gp/T/pip-install-1h1e_mdr/mecab-python3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/mc/n3j6vpx50md6vvdv1dqlq59h0000gp/T/pip-record-je4oiu4f/install-record.txt --single-version-externally-managed --compile: /Users/userthree/.pyenv/versions/3.7.0/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running install running build running build_py running build_ext building '_MeCab' extension swigging MeCab.i to MeCab_wrap.cpp swig -python -shadow -c++ -I/usr/local/include -o MeCab_wrap.cpp MeCab.i MeCab.i:146: Error: Unable to find 'mecab.h' error: command 'swig' failed with exit status 1 ---------------------------------------- Command "/Users/userthree/.pyenv/versions/3.7.0/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mc/n3j6vpx50md6vvdv1dqlq59h0000gp/T/pip-install-1h1e_mdr/mecab-python3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/mc/n3j6vpx50md6vvdv1dqlq59h0000gp/T/pip-record-je4oiu4f/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/mc/n3j6vpx50md6vvdv1dqlq59h0000gp/T/pip-install-1h1e_mdr/mecab-python3/
その他バージョン
mac OS Mojave 10.14.1
Homebrew 1.9.2
pyenv 1.2.9
pip 18.1
mecab of 0.996

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/19 00:45
2019/01/19 00:47
2019/01/19 00:59 編集
2019/01/19 01:18