yannvgn / laserembeddings

LASER multilingual sentence embeddings as a pip package
BSD 3-Clause "New" or "Revised" License
225 stars 29 forks source link

Failed to install on windows #16

Closed nishray12096 closed 4 years ago

nishray12096 commented 4 years ago

Hello,

When trying to install Japanese and Chinese dependencies (pip install laserembeddings[zh,ja]) on windows i'm seeing an error:

image

The same error occurs when trying to install mecab-python3 directly. I've installed mecab and the frozen environment is attached. requirements.txt

EDIT: Have also installed mecab-python-windows but get the same error when installing laserembeddings for chinese and japanese.

EDIT 2: This error only occurs when installing for Japenese or Chinese, but seems like it results in an issue with all languages. In english, retrieving embeddings gives the following MeCab related error: image

Thanks in advance :)

yannvgn commented 4 years ago

Hi @nishray12096,

Thanks for your feedback. Mecab-python3 does not provide wheels for windows (https://github.com/SamuraiT/mecab-python3/issues/31) and it looks like there's no easy solution for Windows for now (I mean without having to install Mecab separately or without compiling).

As a quick fix, I will disable Japanese extra on windows until wheels are available for windows. I will also implement a fix that will prevent Laser from complaining when mecab-python3 was installed but is not working.

Cheers