hello, I'm trying to install mecab-python3 using 'pip install mecab-python3' command and
the installing process were terminated with an error messages like below.
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/user/anaconda/envs/vincent/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/yq/7_m8z6s930ndpv923ypr6lcw0000gn/T/pip-install-gr1rrvbr/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/yq/7_m8z6s930ndpv923ypr6lcw0000gn/T/pip-record-yfm5qg13/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.7
copying MeCab.py -> build/lib.macosx-10.7-x86_64-3.7
running build_ext
building '_MeCab' extension
creating build/temp.macosx-10.7-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/user/anaconda/envs/vincent/include -arch x86_64 -I/Users/user/anaconda/envs/vincent/include -arch x86_64 -I/usr/local/Cellar/mecab/0.996/include -I/Users/user/anaconda/envs/vincent/include/python3.7m -c MeCab_wrap.cxx -o build/temp.macosx-10.7-x86_64-3.7/MeCab_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /Users/user/anaconda/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
from /Users/user/anaconda/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
from /Users/user/anaconda/envs/vincent/include/python3.7m/Python.h:11,
from MeCab_wrap.cxx:149:
/Users/user/anaconda/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
include_next / recurse down to the real one /
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
hello, I'm trying to install mecab-python3 using 'pip install mecab-python3' command and the installing process were terminated with an error messages like below.
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/user/anaconda/envs/vincent/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/yq/7_m8z6s930ndpv923ypr6lcw0000gn/T/pip-install-gr1rrvbr/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/yq/7_m8z6s930ndpv923ypr6lcw0000gn/T/pip-record-yfm5qg13/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.macosx-10.7-x86_64-3.7 copying MeCab.py -> build/lib.macosx-10.7-x86_64-3.7 running build_ext building '_MeCab' extension creating build/temp.macosx-10.7-x86_64-3.7 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/user/anaconda/envs/vincent/include -arch x86_64 -I/Users/user/anaconda/envs/vincent/include -arch x86_64 -I/usr/local/Cellar/mecab/0.996/include -I/Users/user/anaconda/envs/vincent/include/python3.7m -c MeCab_wrap.cxx -o build/temp.macosx-10.7-x86_64-3.7/MeCab_wrap.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] In file included from /Users/user/anaconda/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0, from /Users/user/anaconda/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34, from /Users/user/anaconda/envs/vincent/include/python3.7m/Python.h:11, from MeCab_wrap.cxx:149: /Users/user/anaconda/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
include_next / recurse down to the real one /
Command "/Users/user/anaconda/envs/vincent/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/yq/7_m8z6s930ndpv923ypr6lcw0000gn/T/pip-install-gr1rrvbr/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/yq/7_m8z6s930ndpv923ypr6lcw0000gn/T/pip-record-yfm5qg13/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/yq/7_m8z6s930ndpv923ypr6lcw0000gn/T/pip-install-gr1rrvbr/mecab-python3/
My macbook's current gcc version is 4.8.5 I cannot understand how can I solve this problem. Any advice will be helpful, thanks