我如何在Mac上安装libicu-dev。 这是在文档上build议的说明
sudo apt-get install python-numpy libicu-dev
http://polyglot.readthedocs.org/en/latest/Installation.html
我正在使用anaconda,但似乎总是抛出一个
In file included from _icu.cpp:27: ./common.h:86:10: fatal error: 'unicode/utypes.h' file not found #include <unicode/utypes.h>
错误
我刚刚得到PyICU安装在OSX上,因为同样的错误失败后。 这是我建议的:
brew install icu4c
#安装库; 可能已经安装 ls -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
brew install icu4c brew link icu4c --force