V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
GoGoPowerRanger
V2EX  ›  问与答

树莓派下装 pandas 失败

  •  
  •   GoGoPowerRanger · 2018-04-30 12:50:56 +08:00 · 4284 次点击
    这是一个创建于 2397 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 报错不应该是一样的吗
    如知道请告诉我,谢谢
    4 条回复    2019-11-28 09:33:04 +08:00
    icedx
        1
    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
        2
    612  
       2018-04-30 13:25:55 +08:00 via iPhone
    用 python3 吧,毕竟要进步。我前几天才装过,把依赖 num、six 啥的先装了,然后装就没有问题
    GoGoPowerRanger
        3
    GoGoPowerRanger  
    OP
       2018-04-30 16:49:44 +08:00
    sudo apt-get install python3-pandas
    问题解决了
    qinsi
        4
    qinsi  
       2019-11-28 09:33:04 +08:00
    @GoGoPowerRanger pip 无法安装,用 apt 确认可解决
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1056 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:13 · PVG 03:13 · LAX 11:13 · JFK 14:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.