`pip install pandas` 给出 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128) [英] `pip install pandas` gives UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)

查看:25
本文介绍了`pip install pandas` 给出 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Digital Ocean 512MB droplet 上执行 pip install pandas 时,我收到错误 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128).

任何想法可能导致它?我正在运行 Ubuntu 12.04 64 位.

[完全错误]

解决方案

gcc 好像因为内存不足被杀了(见 @Blender 的评论) 暴露了 pip 中的一个错误.它在记录时混合了字节串和 Unicode,导致:

<预><代码>>>>' '.join(['bytestring with non-ascii character ☺', u'unicode'])回溯(最近一次调用最后一次):文件<stdin>",第 1 行,在 <module> 中UnicodeDecodeError: 'ascii' 编解码器无法解码位置 36 中的字节 0xe2:序号不在范围内(128)

如果可以用最新的pip 版本重现;您可以报告错误.

When performing pip install pandas on a Digital Ocean 512MB droplet, I get the error UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128) .

Any ideas what may have caused it? I'm running Ubuntu 12.04 64bit.

[Full Error]

解决方案

It looks like gcc being killed due to insufficient memory (see @Blender's comment) exposed a bug in pip. It mixes bytestrings and Unicode while logging that leads to:

>>> '
'.join(['bytestring with non-ascii character ☺', u'unicode'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36: 
   ordinal not in range(128)

If it is reproducible with the latest pip version; you could report the bug.

这篇关于`pip install pandas` 给出 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆