https://qiita.com/woody-kawagoe/items/09c0f89a55701bcf72eb#cabocha
を参考にcabochaをpython3で使えるように試みているのですが、手順のうちの
sudo python setup.py build_ext
の入力を行うと、
In file included from /Users/labosano/anaconda3/include/python3.6m/Python.h:11: /Users/labosano/anaconda3/bin/../include/c++/v1/limits.h:41:10: fatal error: '__config' file not found #include <__config> ^~~~~~~~~~ 1 error generated. error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
のようなエラーが発生してしまいます。
調べてみたところ、少し前の
make
の入力後に
In file included from dep.cpp:16: In file included from ./svm.h:15: ./mmap.h:58:5: warning: unused function 'open__' [-Wunused-function] int open__(const char* name, int flag) { return open(name, flag); } ^ ./mmap.h:59:5: warning: unused function 'close__' [-Wunused-function] int close__(int fd) { return close(fd); } ^ 2 warnings generated.
のようなエラーが多数見受けられたため、ここが原因なのではないかと踏んでいます。
しかし、いまひとつ原因・解決法がはっきりせず困っております...。
どなたかヒントをご教授いただける方はいませんでしょうか...?
よろしくお願いいたします。
環境:macOS,python3
追記2
原因と思われるエラー内容
LaboSanonoMacBook:cabocha-master labosano$ pip install python/ Processing ./python Building wheels for collected packages: cabocha-python Building wheel for cabocha-python (setup.py) ... error Complete output from command /Users/labosano/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8r/hzsz1dsx5wzbf9g0v381g2gr0000gn/T/pip-req-build-wak99qm4/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/8r/hzsz1dsx5wzbf9g0v381g2gr0000gn/T/pip-wheel-ax2uozw8 --python-tag cp36:
error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/21 03:51 編集
2019/01/21 04:49 編集
2019/01/21 13:33 編集
2019/01/21 14:22
2019/01/24 11:19
2019/01/24 16:40