树莓派下装 pandas 失败

2018-04-30 12:50:56 +08:00
 GoGoPowerRanger
log 如下
pi@raspberrypi:~ $ pip install --user pandas
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting pandas
Downloading http://mirrors.aliyun.com/pypi/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/pandas-0.22.0.tar.gz (11.3MB)
100% |████████████████████████████████| 11.3MB 4.4MB/s
Could not find a version that satisfies the requirement Cython (from versions: )
No matching distribution found for Cython

然后我去 update,upgrade 了软件
报错依旧

试过 python 安装命令
python -m pip install pandas
然后就报错不同的 log。。。最下的 log 是

Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-cMceul/pandas
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/dist-packages/pip/__main__.py", line 5, in <module>
exit = run()
File "/usr/lib/python2.7/dist-packages/pip/runner.py", line 12, in run
return pip.main()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 248, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)


安道理 python -m pip install pandas 和 pip install pandas 报错不应该是一样的吗
如知道请告诉我,谢谢
4307 次点击
所在节点    问与答
4 条回复
icedx
2018-04-30 13:23:00 +08:00
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)

理论上 Linux 不该有这个问题的

重装树莓派吧
612
2018-04-30 13:25:55 +08:00
用 python3 吧,毕竟要进步。我前几天才装过,把依赖 num、six 啥的先装了,然后装就没有问题
GoGoPowerRanger
2018-04-30 16:49:44 +08:00
sudo apt-get install python3-pandas
问题解决了
qinsi
2019-11-28 09:33:04 +08:00
@GoGoPowerRanger pip 无法安装,用 apt 确认可解决

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/451022

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX