【发布时间】:2015-03-11 00:17:16
【问题描述】:
我在我的 Mac (10.7.5) 上通过 pip(和 easy_install)安装 pandas 包时遇到问题。
我的问题差不多就是这个问题:error installing pandas in pip
但是那里没有答案。与在 pip 上安装 pandas 有关的其他问题似乎都遇到了不同的问题(即没有 Xcode,或者有过时的 numpy 版本)。
这是终端窗口的最后一点:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 8, in <module>
load_entry_point('pip==1.5.5', 'console_scripts', 'pip')()
File "/Library/Python/2.7/site-packages/pip-1.5.5-py2.7.egg/pip/__init__.py",line 185, in main
return command.main(cmd_args)
File "/Library/Python/2.7/site-packages/pip-1.5.5-py2.7.egg/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 43: ordinal not in range(128)
在终端显示2.7.6 中输入python -V,我已经安装了numpy 1.8.1。
我想避免安装 Anaconda。
任何帮助将不胜感激。谢谢!
【问题讨论】:
-
echo $LANG打印什么?它是 utf8 语言环境(例如en_US.UTF-8)吗?在通过export LANG=en_US.UTF-8设置LANG后,您是否看到同样的问题? -
echo $LANG打印en_US.UTF-8
标签: python debugging pandas pip