質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Mecab

Mecabは、オープンソースの形態素解析エンジンです。 言語、辞書、コーパスに依存しない汎用的な設計を基本方針としています。 Mecabの由来は、開発者の好物である和布蕪(めかぶ)から名づけられました。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

解決済

1回答

481閲覧

mecabで形態素解析(mac OS)

KotaAkiba

総合スコア16

Mecab

Mecabは、オープンソースの形態素解析エンジンです。 言語、辞書、コーパスに依存しない汎用的な設計を基本方針としています。 Mecabの由来は、開発者の好物である和布蕪(めかぶ)から名づけられました。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2019/01/10 16:01

###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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

投稿2019/01/10 20:48

DoChi_72

総合スコア30

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問