"python setup.py egg_info"失败,错误代码 1' 错误,安装推文预处理器 0.4.0



我正在尝试安装 tweet-preprocessor 0.4.0 使用 pip ,但是我会收到以下错误

    C:UsersBilal>pip3 install tweet-preprocessor
Collecting tweet-preprocessor
  Using cached tweet-preprocessor-0.5.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:UsersBilalAppDataLocalTemppip-build-0way1c0htweet-preprocessorsetup.py", line 6, in <module>
        long_description = f.read()
      File "c:pythonpython36-32libencodingscp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 652: character maps to <undefined>
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersBilalAppDataLocalTemppip-build-0way1c0htweet-preprocessor

我遵循以下说明,但收到了同样的错误。

我在做什么错?我在Windows 10Python 3.6.2PIP版本PIP 9.0.1来自C: Python Python36-32 lib site-packages(Python 3.6(

似乎是一个报告的错误,并且有一个解决方案 - 编辑setup.py,并在open()中添加encoding='utf-8'

该错误似乎已固定在PR#11中。尝试安装Tweet-Prepropessor 0.5.0。

似乎是基于我搜索的报告信息的Windows(Verion 0.50(。

我尝试了以下(来自Anaconda频道(在Windows上的操作,并且不确定它是不同的版本(也称为0.50(:

pip安装-i https://pypi.anaconda.org/berber/simple Tweet预处理器

(Anaconda 4.8,Pip 20.0.2,Python 3.6(

相关内容

最新更新