【问题标题】:"python setup.py egg_info" failed with error code 1. How to fix this“python setup.py egg_info”失败,错误代码为 1。如何解决这个问题
【发布时间】:2019-08-07 10:35:57
【问题描述】:

我该如何解决这个问题。我找不到任何带有“Temp\pip-install-7utykvpt\polyglot”的目录

C:\Windows\system32>pip install polyglot
Collecting polyglot
  Using cached https://files.pythonhosted.org/packages/e7/98/e24e2489114c5112b083714277204d92d372f5bbe00d5507acf40370edb9/polyglot-16.7.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Lenovo\AppData\Local\Temp\pip-install-7utykvpt\polyglot\setup.py", line 15, in <module>
        readme = readme_file.read()
      File "c:\users\lenovo\appdata\local\programs\python\python36\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>

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Lenovo\AppData\Local\Temp\pip-install-7utykvpt\polyglot\

【问题讨论】:

    标签: python setup.py error-code polyglot


    【解决方案1】:

    该目录是临时的,正如其名称所述。如果 pip 失败或成功,它会在它完成运行时销毁它。

    你的错误很清楚,它告诉你在阅读自述文件时发现它不知道如何解码的 unicode 字符。

    这似乎是一个已知问题,https://github.com/aboSamoor/polyglot/issues/127https://github.com/aboSamoor/polyglot/issues/93https://github.com/aboSamoor/polyglot/issues/91。链接问题中提供了多种解决方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-12-12
      • 1970-01-01
      • 1970-01-01
      • 2016-12-18
      • 2017-02-20
      相关资源
      最近更新 更多