vendredi 17 juin 2016

Install packages failed in Pycharm

I tried to install hunspell in pycharm, but it failed. And gives me the following errors:

collecting hunspell
Using cached hunspell-0.4.1.tar.gz
Installing collected packages: hunspell
 Running setup.py install for hunspell: started
 Running setup.py install for hunspell: finished with status 'error'
Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8r/bx6cy_wn50787xr46ldd191c0000gn/T/pycharm-packaging/hunspell/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /var/folders/8r/bx6cy_wn50787xr46ldd191c0000gn/T/pip-on9v1dox-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/extension.py:132: UserWarning: Unknown Extension options: 'compile_args', 'macros'
  warnings.warn(msg)
running install
running build
running build_ext
building 'hunspell' extension
creating build
creating build/temp.macosx-10.6-intel-3.5
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/usr/include/hunspell -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c hunspell.c -o build/temp.macosx-10.6-intel-3.5/hunspell.o
hunspell.c:21:10: fatal error: 'hunspell.h' file not found
#include <hunspell.h>
         ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8r/bx6cy_wn50787xr46ldd191c0000gn/T/pycharm-packaging/hunspell/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /var/folders/8r/bx6cy_wn50787xr46ldd191c0000gn/T/pip-on9v1dox-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/var/folders/8r/bx6cy_wn50787xr46ldd191c0000gn/T/pycharm-packaging/hunspell/

Does anyone know how to fix it? Thanks

Aucun commentaire:

Enregistrer un commentaire