ace*_*ner 11 python windows unicode macos pip
我如何在mac上安装libicu-dev.这是文档中建议的说明
sudo apt-get install python-numpy libicu-dev
Run Code Online (Sandbox Code Playgroud)
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>
Run Code Online (Sandbox Code Playgroud)
错误
Jes*_*ith 23
我刚刚在OSX上安装了PyICU,因为同样的错误导致它失败了.这是我的建议:
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
编辑:有进一步的变化.我目前安装icu的过程:
brew install icu4c
brew link icu4c --force
ICU_VERSION=<BREW_ICU_VERSION> CFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib pip install pyicu
小智 15
brew install icu4c
brew link icu4c --force
Run Code Online (Sandbox Code Playgroud)
https://github.com/imojiengineering/node-icu-tokenizer
归档时间: |
|
查看次数: |
15561 次 |
最近记录: |