UKPLab / elmo-bilstm-cnn-crf

BiLSTM-CNN-CRF architecture for sequence tagging using ELMo representations.
Apache License 2.0
388 stars 81 forks source link

How to install allennlp on windows? #7

Open tangg555 opened 6 years ago

tangg555 commented 6 years ago

I use python3.6 tensorflow1.8 on win10 system, but I got error when installing allennlp as following: Failed building wheel for jsonnet Command "e:\extrasoftware\python\python3.6\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\46312\\AppData\\Local\\Temp\\pip-install-z1jdlpt3\\jsonnet\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\46312\AppData\Local\Temp\pip-record-v3c1cpg2\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\46312\AppData\Local\Temp\pip-install-z1jdlpt3\jsonnet\ Why this happened and how can I solve it?

nreimers commented 6 years ago

Hi, According to this issue, AllenNLP is not supported under Windows: https://github.com/allenai/allennlp/issues/1178 https://github.com/allenai/allennlp/issues/612

to be honest: Running these deep learning frameworks on Windows is not the best idea. Most of them aim to be runnable on Linux. Installing and running them on Windows causes often a lot of problems or they don't work at all.

Using a docker environment on Windows is a nice solution to use Linux under Windows. This repository also contains a ready docker file which can be used with Windows-Docker and which install all the requirements.

Also, there is a native Ubuntu app under Windows 10 that can easily be installed. Maybe AllenNLP can be installed in this native Ubuntu app for Win10?

wangcongcong123 commented 4 years ago

Hope this link will help: https://github.com/wangcongcong123/AllenNLPonWins