MeCabをインストール出来なくて困っています。
前までは動いていたのですが、モジュールがインストールされていないというエラーが出たため、
再インストールを試みました。
バックエンドの知識不足もあり、エラーの内容が読み取れません。
改善策を教えていただきたいです。
mbp:Desktop myname$ pip install mecab-python3 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 /Users/myname/.pyenv/versions/miniconda3-latest/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/j_/2pgtj1ws0nl0mwtbyy60cn1c0000gn/T/pip-install-8m9chs0p/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/j_/2pgtj1ws0nl0mwtbyy60cn1c0000gn/T/pip-wheel-0l7i74r3 --python-tag cp36: 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/Cellar/mecab/0.996/include -o MeCab_wrap.cpp MeCab.i unable to execute 'swig': Not a directory error: command 'swig' 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 /Users/myname/.pyenv/versions/miniconda3-latest/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/j_/2pgtj1ws0nl0mwtbyy60cn1c0000gn/T/pip-install-8m9chs0p/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/j_/2pgtj1ws0nl0mwtbyy60cn1c0000gn/T/pip-record-0j_9gvzn/install-record.txt --single-version-externally-managed --compile: 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/Cellar/mecab/0.996/include -o MeCab_wrap.cpp MeCab.i unable to execute 'swig': Not a directory error: command 'swig' failed with exit status 1 ---------------------------------------- Command "/Users/myname/.pyenv/versions/miniconda3-latest/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/j_/2pgtj1ws0nl0mwtbyy60cn1c0000gn/T/pip-install-8m9chs0p/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/j_/2pgtj1ws0nl0mwtbyy60cn1c0000gn/T/pip-record-0j_9gvzn/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/j_/2pgtj1ws0nl0mwtbyy60cn1c0000gn/T/pip-install-8m9chs0p/mecab-python3/
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。