how do i install libicu-dev on mac. This is the instruction recommended on the documentation
sudo apt-get install python-numpy libicu-dev
http://polyglot.readthedocs.org/en/latest/Installation.html
I am using anaconda but it seems to always throw up an
In file included from _icu.cpp:27:
./common.h:86:10: fatal error: 'unicode/utypes.h' file not found
#include <unicode/utypes.h>
error
I just got PyICU to install on OSX, after it was failing due to that same error. Here is what I recommend:
brew install icu4c
# Install the library; may be already installedls -l /usr/local/opt/icu4c/include/
brew remove icu4c
brew install icu4c
pip install polyglot
CFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib pip install polyglot
for me the simple answer with just brew install and linking does not work so I found the below solution to make it works:
1) install
icu4c
with brew:2) check the version:
it prompts something like:
59.1
3) execute bellow commands with substitution of proper version from previous step (first line only integer part, second and third line with decimal part):
4) finally install python package for pyicu:
https://github.com/imojiengineering/node-icu-tokenizer