0

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.

我不知道我是否应该对 polyglotcp1252.pysetup.pyfor polyglot 进行任何更改。

Python版本:3.6.10

4

1 回答 1

0

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

于 2020-09-02T09:13:20.510 回答