Pip安装煤油给出了unicodeDecodeError

时间:2018-04-25 14:50:18

标签: unicode compiler-errors pip

我正在尝试从nvidia-docker容器中执行pip3 install kerosene。我收到错误:

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-16cx_v3e/fuel/setup.py", line 10, in <module>
    LONG_DESCRIPTION = f.read().strip()
  File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1803: ordinal not in range(128)

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-0e0cswbo/fuel/

我搜索了这个错误并看到有些人从工作目录或用户名中包含非ascii字符得到它,但我不认为这是我的情况。有人知道解决方法或我如何进一步研究这个问题吗?

1 个答案:

答案 0 :(得分:1)

2年前这个错误似乎是fixed的燃料,但它没有包含在PyPI的包装中。从Github安装:

pip install -U git+https://github.com/mila-udem/fuel.git#egg=fuel