###macでmecab
Macで形態素解析を考えています。
mecabインストール時に次のようなエラーが出てしまいます。
発生している問題・エラーメッセージ
Collecting mecab-python3 Using cached https://files.pythonhosted.org/packages/ac/48/295efe525df40cbc2173748eb869290e81a57e835bc41f6d3834fc5dad5f/mecab-python3-0.996.1.tar.gz Building wheels for collected packages: mecab-python3 Running setup.py bdist_wheel for mecab-python3 ... error Complete output from command -u -c "import setuptools, tokenize;__file__='/private/var/folders/k9/9mlrnq2s1k7b519gwwdfm6v80000gn/T/pip-install-63og2tgs/mecab-python3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/k9/9mlrnq2s1k7b519gwwdfm6v80000gn/T/pip-wheel-6etrtpoj --python-tag cp35: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running bdist_wheel 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 /usr/local/include/mecab.h:848: Warning 302: Identifier 'set_sentence' redefined by %extend (ignored), MeCab.i:89: Warning 302: %extend definition of 'set_sentence'. creating build creating build/temp.macosx-10.6-x86_64-3.5 /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/.pyenv/versions/anaconda3-4.2.0/include -arch x86_64 -I/usr/local/include -I/Users/kotaakiba/.pyenv/versions/anaconda3-4.2.0/include/python3.5m -c MeCab_wrap.cpp -o build/temp.macosx-10.6-x86_64-3.5/MeCab_wrap.o warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] MeCab_wrap.cpp:3051:10: fatal error: 'stdexcept' file not found #include <stdexcept> ^~~~~~~~~~~ 1 warning and 1 error generated. error: command '/usr/bin/clang' failed with exit status 1 ---------------------------------------- Failed building wheel for mecab-python3 Running setup.py clean for mecab-python3 Failed to build mecab-python3 Installing collected packages: mecab-python3 Running setup.py install for mecab-python3 ... error Complete output from command /.pyenv/versions/anaconda3-4.2.0/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/k9/9mlrnq2s1k7b519gwwdfm6v80000gn/T/pip-install-63og2tgs/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/k9/9mlrnq2s1k7b519gwwdfm6v80000gn/T/pip-record-34jbxwa5/install-record.txt --single-version-externally-managed --compile: /.pyenv/versions/anaconda3-4.2.0/lib/python3.5/distutils/dist.py:261: 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 /usr/local/include/mecab.h:848: Warning 302: Identifier 'set_sentence' redefined by %extend (ignored), MeCab.i:89: Warning 302: %extend definition of 'set_sentence'. creating build creating build/temp.macosx-10.6-x86_64-3.5 /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/kotaakiba/.pyenv/versions/anaconda3-4.2.0/include -arch x86_64 -I/usr/local/include -/.pyenv/versions/anaconda3-4.2.0/include/python3.5m -c MeCab_wrap.cpp -o build/temp.macosx-10.6-x86_64-3.5/MeCab_wrap.o warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] MeCab_wrap.cpp:3051:10: fatal error: 'stdexcept' file not found #include <stdexcept> ^~~~~~~~~~~ 1 warning and 1 error generated. error: command '/usr/bin/clang' failed with exit status 1 ---------------------------------------- Command "/.pyenv/versions/anaconda3-4.2.0/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/k9/9mlrnq2s1k7b519gwwdfm6v80000gn/T/pip-install-63og2tgs/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/k9/9mlrnq2s1k7b519gwwdfm6v80000gn/T/pip-record-34jbxwa5/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/k9/9mlrnq2s1k7b519gwwdfm6v80000gn/T/pip-install-63og2tgs/mecab-python3/
補足
macOS Mojave 10.14.2
python3.5.5
jupyter notebook
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。