首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装polyglot时Unicode解码错误

安装polyglot时Unicode解码错误
EN

Stack Overflow用户
提问于 2020-09-02 07:37:09
回答 1查看 714关注 0票数 0

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

代码语言:javascript
复制
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.pysetup.py进行任何修改。

Python版本: 3.6.10

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-02 09:13:20

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63700821

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档