安装Polyglot时出现Unicode解码错误

问题描述

我在用remote_apply安装polyglot时遇到问题。 我检查了pip install polyglot,编码为setup.py,据认为对所有语言都是正确的。 我尝试将编码更改为utf-8,但是发生了同样的问题。

utf-16

我不知道我应该对ERROR: Command errored out with exit status 1: command: 'e:\anaconda\python.exe' -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'C:\\WINDOWS\\TEMP\\pip-install-4718m132\\polyglot\\setup.py'"'"'; __file__='"'"'C:\\WINDOWS\\TEMP\\pip-install-4718m132\\polyglot\\setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' egg_info --egg-base 'C:\WINDOWS\TEMP\pip-pip-egg-info-0ny0ymtc' cwd: C:\WINDOWS\TEMP\pip-install-4718m132\polyglot\ Complete output (7 lines): Traceback (most recent call last): File "<string>",line 1,in <module> File "C:\WINDOWS\TEMP\pip-install-4718m132\polyglot\setup.py",line 15,in <module> readme = readme_file.read() File "e:\anaconda\lib\encodings\cp1252.py",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> ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 还是cp1252.py进行多语种更改。

Python版本:3.6.10

解决方法

Windows需要特殊的安装过程。查看this帖子以获取更多信息

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...