Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 UnicodeDecodeError while installing polyglot
Good day everyone. I'm installing polyglot for python 3.4.3 in windows 7 64 bit. Dependencies were installed already and when I installed  polyglot, I get an error below. Please help. This might sound very simple for you all but please bear with me, I'm just new to python and still learning. Your help will be much appreciated. Thank you.

C:\Python34\Scripts>pip install polyglot Collecting polyglot   Using cached polyglot-16.7.4.tar.gz     Complete output from command python egg_info:     Traceback (most recent call last):       File "<string>", line 1, in <module>       File "C:\Users\DRMS~1\AppData\Local\Temp\pip-build-8id__qnu\polyglot\setup .py", line 15, in <module>         readme =       File "C:\Python34\lib\encodings\", line 23, in decode         return codecs.charmap_decode(input,self.errors,decoding_table)[0]     UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 4941:  character maps to <undefined>     ---------------------------------------- Command "python egg_info" failed with error code 1 in C:\Users\DRMS~1\A ppData\Local\Temp\pip-build-8id__qnu\polyglot\
A quick look at the documentation leads me to believe that this particular module is intended for Linux only and not for Windows.  This entry:

Quote:   File "C:\Python34\lib\encodings\", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 4941:
 character maps to <undefined>

seems to indicate polyglot relies on utf-8 (which Linux supports natively), while your version of Windows currently supports cp1252 (code page 1252), which is not utf-8.

You might (and I stress 'might') be able to solve the problem by upgrading to Python v 3.6.0 (the latest version).  Again, this seems targeted for Linux, so even if the upgrade resolves this particular issue, there might be other problems do to differences in OS's.

There was this comment from the github site though:

Quote:valeriocos commented on Jul 31, 2015
Hi, I had some problems installing Polyglot on my Windows machine (I did not find any information for Windows distributions at

I was able to make it run by downloading the following Windows Binaries from

and installing them through the command line
pip install <name_of_the_binary>.whl

Good luck
nilamo likes this post
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Thank you for the reply sir. Yah, I was able to install it in windows 7 32 bit, some functionalities worked with windows but to good with NER. However, I'm planning to do the task with linux platform now. Thank you.
nilamo likes this post

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Error installing numpy srm 3 164 Jul-08-2019, 06:26 PM
Last Post: srm
  Installing pip packages on Windows 10 tablet jazmad 5 611 Oct-24-2018, 10:37 AM
Last Post: jazmad
  Installing Tensorflow-GPU Help junzhi 1 710 Oct-04-2018, 12:40 PM
Last Post: Larz60+
  Installing Tensorflow-GPU junzhi 2 755 Sep-30-2018, 07:43 AM
Last Post: junzhi
  Return ERROR when installing pyopencl Helcio_Sarabando 1 702 Sep-08-2018, 11:23 PM
Last Post: Larz60+
  Error when installing Seaborn package using pip chawkins 3 1,106 Jul-16-2018, 12:12 AM
Last Post: Larz60+
  UnicodeDecodeError: garikhgh0 18 6,504 Jun-04-2018, 08:41 PM
Last Post: volcano63
  Installing Tensorflow Scott 14 8,337 Jun-04-2018, 04:07 AM
Last Post: Scott
  Help installing NumPy Larry 18 3,724 Feb-20-2018, 09:17 AM
Last Post: Larry
  Installing from source and getting import working in linux poutila 9 1,204 Jan-18-2018, 10:43 AM
Last Post: poutila

Forum Jump:

Users browsing this thread: 1 Guest(s)