aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.3k stars 337 forks source link

PyICU installation error #148

Closed ghost closed 6 years ago

ghost commented 6 years ago

Running pip install pyicu results:

Failed building wheel for pyicu Running setup.py clean for pyicu Failed to build pyicu Installing collected packages: pyicu Running setup.py install for pyicu ... error Complete output from command /mnt/c/Users/BALONGCAS/Ubuntu/TalkThru/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-rhupo62o/pyicu/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-record-8xfutk7j/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/c/Users/BALONGCAS/Ubuntu/TalkThru/include/site/python3.6/pyicu:

Building PyICU 2.0.3 for ICU 55.1

Adding CXXFLAGS="--std=c++0x -I/usr/include" from /usr/bin/icu-config
Adding LDFLAGS="-L/usr/lib/x86_64-linux-gnu -licui18n -licuuc -licudata" from /usr/bin/icu-config
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
copying PyICU.py -> build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/icu
copying icu/__init__.py -> build/lib.linux-x86_64-3.6/icu
running build_ext
building '_icu' extension
creating build/temp.linux-x86_64-3.6
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/mnt/c/Users/BALONGCAS/Ubuntu/TalkThru/include/python3.6m -c _icu.cpp -o build/temp.linux-x86_64-3.6/_icu.o -DPYICU_VER="2.0.3" --std=c++0x -I/usr/include
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
_icu.cpp:24:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

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

Command "/mnt/c/Users/BALONGCAS/Ubuntu/TalkThru/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-rhupo62o/pyicu/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-record-8xfutk7j/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/c/Users/BALONGCAS/Ubuntu/TalkThru/include/site/python3.6/pyicu" failed with error code 1 in /tmp/pip-install-rhupo62o/pyicu/

janissl commented 6 years ago

I am afraid that Windows Subsystem for Linux does not substitute a fully functional Linux machine.