pip install制表UnicodeDecodeError

时间:2013-11-14 00:46:28

标签: python-3.x pip

我正在尝试通过在Archlinux上运行tabulate来安装python包pip3 install tabulate但是我收到以下错误:

Downloading/unpacking tabulate
Downloading tabulate-0.6.tar.gz
Running setup.py egg_info for package tabulate
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_user/tabulate/setup.py", line 8, in <module>
LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`")
File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 8035: ordinal 
not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 16, in <module>

File "/tmp/pip_build_user/tabulate/setup.py", line 8, in <module>

LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`")


File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode

return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 8035: ordinal not in range(128)

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_user/tabulate
`Storing complete log in /home/user/.pip/pip.log

我正在跑步:

  • python -V - &gt; Python 3.3.2
  • pip3 -V - &gt;来自/usr/lib/python3.3/site-packages(python 3.3)的pip 1.4.1

我已经通过pip成功安装了其他软件包,我不知道为什么会突然发生这种情况。有谁能告诉我如何解决这个问题?

解决方案 的 它在我的操作系统上看起来像一个区域设置问题。必须将全局LANG环境变量覆盖为LANG =“en_US.UTF-8”。

1 个答案:

答案 0 :(得分:1)

解决方案它在我的操作系统上看起来像是一个区域设置问题。必须将全局LANG环境变量覆盖为LANG =“en_US.UTF-8”。