Closed danyal-s closed 6 years ago
Hi, PyICU must be installed using a .whl file on Windows. You may download it from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyicu
Hey, sorry if this is a silly question, but how do I find out which version is the right one for my machine? Through the link you provided me, these seem like the relevant ones:
PyICU‑2.0.3‑cp27‑cp27m‑win32.whl PyICU‑2.0.3‑cp27‑cp27m‑win_amd64.whl PyICU‑2.0.3‑cp34‑cp34m‑win32.whl PyICU‑2.0.3‑cp34‑cp34m‑win_amd64.whl PyICU‑2.0.3‑cp35‑cp35m‑win32.whl PyICU‑2.0.3‑cp35‑cp35m‑win_amd64.whl PyICU‑2.0.3‑cp36‑cp36m‑win32.whl PyICU‑2.0.3‑cp36‑cp36m‑win_amd64.whl PyICU‑2.0.3‑cp37‑cp37m‑win32.whl PyICU‑2.0.3‑cp37‑cp37m‑win_amd64.whl
I tried installing the last two but got an error:
PS D:\Downloads> pip install .\PyICU-2.0.3-cp37-cp37m-win_amd64.whl PyICU-2.0.3-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform. PS D:\Downloads> pip install .\PyICU-2.0.3-cp37-cp37m-win32.whl PyICU-2.0.3-cp37-cp37m-win32.whl is not a supported wheel on this platform.
The correct version of the WHL file depends on your Python installation. The cp-part denotates your Python version (e.g. Python 3.6 -> cp36), the last part - the bitness of your Python installation, i.e. win32 -> 32-bit Python, win_amd64 -> 64-bit Python.
That helped; the setup went a stage forward (thanks for helping btw!), but now I am encountering this issue:
cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-m64' cl : Command line warning D9002 : ignoring unknown option '-fPIC' pycldmodule.cc bindings\pycldmodule.cc(16): fatal error C1083: Cannot open include file: 'strings.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.13.26128\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
Also install the pycld2 package using a .whl file from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycld2
Refer to polyglot/requirements.txt for all necessary packages.
Thank you so much! Finally got it to work. :) I really appreciate you helping me out with this. 😄
@janissl method is 100% solved the problem. Thank you
Hello. I have been trying to install Polyglot on my Windows 10 machine but to no avail. I tried to solve this error through the various issues posted here, but none of them work for me.
It seems the issue arises when trying to install PyICU which is part of Polyglot's installation. I git cloned the repo and used
python setup.py install
to do so (since pip install polyglot gives an encoding error from cp1252 even though my Python's default encoding is UTF-8).Please help me out; I am totally stumped and have been trying for too long to fix this!
P.S: This is my first ever proper issue posted, so please go easy on me and let me know what else is considered helpful in such a forum.