aboSamoor / polyglot

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

Windows 10 Installation issue #221

Open satishkrr opened 4 years ago

satishkrr commented 4 years ago

Processing dependencies for polyglot==16.7.4 Searching for futures>=2.1.6 Reading https://pypi.org/simple/futures/ Downloading https://files.pythonhosted.org/packages/47/04/5fc6c74ad114032cd2c544c575bffc17582295e9cd6a851d6026ab4b2c00/futures-3.3.0.tar.gz#sha256=7e033af76a5e35f58e56da7a91e687706faf4e7bdfb2cbc3f2cca6b9bcda9794 Best match: futures 3.3.0 Processing futures-3.3.0.tar.gz Writing C:\Users\satis\AppData\Local\Temp\easy_install-2cpph179\futures-3.3.0\setup.cfg Running futures-3.3.0\setup.py -q bdist_egg --dist-dir C:\Users\satis\AppData\Local\Temp\easy_install-2cpph179\futures-3.3.0\egg-dist-tmp-sunumdqw This backport is meant only for Python 2. It does not work on Python 3, and Python 3 users do not need it as the concurrent.futures package is available in the standard library. For projects that work on both Python 2 and 3, the dependency needs to be conditional on the Python version, like so: extras_require={':python_version == "2.7"': ['futures']} error: Setup script exited with 1

zephyrsurfteam commented 4 years ago

I'm having the same exact issue. I'm using Python 3.8.2 on Windows 10. The line "This backport is meant only for Python 2" leads me to believe that my version of Python isn't compatible with this install method, but I could definitely be wrong.

Here is a step-by-step of how I attempted to download the package in the command prompt: 1) git clone https://github.com/aboSamoor/polyglot 2) cd polyglot 3) python setup.py install

That is when I got the error noted by satishkrr. Any help would be greatly appreciated.

satishkrr commented 4 years ago

Win 10 64bit, Anaconda Python 3.6

git clone https://github.com/aboSamoor/polyglot.git python setup.py install

pycld2

pip install pycld2 From https://pypi.org/project/pycld2/

Download from : https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycld2 pycld2-0.41-cp37-cp37m-win_amd64.whl

pip install pycld2-0.41-cp37-cp37m-win_amd64.whl

PyICU

pip install PyICU From https://pypi.org/project/PyICU/ NOT WORKING

Download from : https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyicu PyICU-2.4.3-cp37-cp37m-win_amd64.whl pip install PyICU-2.4.3-cp37-cp37m-win_amd64.whl

pip install Morfessor From https://pypi.org/project/Morfessor/

nisahanum commented 2 years ago

i'm already install pycld2, PyICU and Morfessor, but i got error


ModuleNotFoundError Traceback (most recent call last)

in 1 # Load packages 2 import polyglot ----> 3 from polyglot.text import Text,Word ModuleNotFoundError: No module named 'polyglot.text'