I'm looking forward to install the hunspell package using pip, but it throws the following error:
Collecting hunspellUsing cached hunspell-0.4.1.tar.gz
Building wheels for collected packages: hunspellRunning setup.py bdist_wheel for hunspell ... errorComplete output from command /root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oyfpp3iy/hunspell/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 /tmp/tmphqvqt4lxpip-wheel- --python-tag cp34:/root/anaconda3/lib/python3.4/distutils/extension.py:132: UserWarning: Unknown Extension options: 'compile_args', 'macros'warnings.warn(msg)running bdist_wheelrunning buildrunning build_extbuilding 'hunspell' extensioncreating buildcreating build/temp.linux-x86_64-3.4gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/hunspell -I/root/anaconda3/include/python3.4m -c hunspell.c -o build/temp.linux-x86_64-3.4/hunspell.ohunspell.c:21:22: erreur fatale: hunspell.h : Aucun fichier ou dossier de ce type#include <hunspell.h>^compilation terminée.error: command 'gcc' failed with exit status 1----------------------------------------Failed building wheel for hunspellRunning setup.py clean for hunspell
Failed to build hunspell
Installing collected packages: hunspellRunning setup.py install for hunspell ... errorComplete output from command /root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oyfpp3iy/hunspell/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-euhsmasb-record/install-record.txt --single-version-externally-managed --compile:/root/anaconda3/lib/python3.4/distutils/extension.py:132: UserWarning: Unknown Extension options: 'compile_args', 'macros'warnings.warn(msg)running installrunning buildrunning build_extbuilding 'hunspell' extensioncreating buildcreating build/temp.linux-x86_64-3.4gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/hunspell -I/root/anaconda3/include/python3.4m -c hunspell.c -o build/temp.linux-x86_64-3.4/hunspell.ohunspell.c:21:22: erreur fatale: hunspell.h : Aucun fichier ou dossier de ce type#include <hunspell.h>^compilation terminée.error: command 'gcc' failed with exit status 1----------------------------------------
Command "/root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oyfpp3iy/hunspell/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-euhsmasb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-oyfpp3iy/hunspell/
[root@localhost Bureau]# alias python-devel=python34-devel
[root@localhost Bureau]# pip install hunspell
Collecting hunspellUsing cached hunspell-0.4.1.tar.gz
Building wheels for collected packages: hunspellRunning setup.py bdist_wheel for hunspell ... errorComplete output from command /root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xpljhkom/hunspell/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 /tmp/tmptwg_9c8vpip-wheel- --python-tag cp34:/root/anaconda3/lib/python3.4/distutils/extension.py:132: UserWarning: Unknown Extension options: 'compile_args', 'macros'warnings.warn(msg)running bdist_wheelrunning buildrunning build_extbuilding 'hunspell' extensioncreating buildcreating build/temp.linux-x86_64-3.4gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/hunspell -I/root/anaconda3/include/python3.4m -c hunspell.c -o build/temp.linux-x86_64-3.4/hunspell.ohunspell.c:21:22: erreur fatale: hunspell.h : Aucun fichier ou dossier de ce type#include <hunspell.h>^compilation terminée.error: command 'gcc' failed with exit status 1----------------------------------------Failed building wheel for hunspellRunning setup.py clean for hunspell
Failed to build hunspell
Installing collected packages: hunspellRunning setup.py install for hunspell ... errorComplete output from command /root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xpljhkom/hunspell/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zrlp2go9-record/install-record.txt --single-version-externally-managed --compile:/root/anaconda3/lib/python3.4/distutils/extension.py:132: UserWarning: Unknown Extension options: 'compile_args', 'macros'warnings.warn(msg)running installrunning buildrunning build_extbuilding 'hunspell' extensioncreating buildcreating build/temp.linux-x86_64-3.4gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/hunspell -I/root/anaconda3/include/python3.4m -c hunspell.c -o build/temp.linux-x86_64-3.4/hunspell.ohunspell.c:21:22: erreur fatale: hunspell.h : Aucun fichier ou dossier de ce type#include <hunspell.h>^compilation terminée.error: command 'gcc' failed with exit status 1----------------------------------------
Command "/root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xpljhkom/hunspell/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zrlp2go9-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-xpljhkom/hunspell/
And I've heard that installing python3-dev would resolve the problem. I tried with no succes. I'm using python 3.4 under CentOS 7. Can I get some help please ? Thanks in advance.