【问题标题】:Cannot get Pandas to install ! Help! (pip install pandas)无法安装 Pandas !帮助! (点安装熊猫)
【发布时间】:2015-04-07 06:35:21
【问题描述】:

我正在尝试安装 Pandar,但无法在我的 linux Centos 6.4 上安装 Pandas。

运行pip install pandas 会导致此错误:

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1

我应该怎么做才能解决这个问题?

【问题讨论】:

    标签: python linux pandas centos pip


    【解决方案1】:

    我很确定那是编译器错误,所以尝试在系统上安装g++

    如果你在 linux 上工作,运行这个。

    sudo apt-get install g++
    

    【讨论】:

    • 是的,我已经安装了 gcc。
    • @FilipKorngut 你看过this SO吗?
    • 是的,刚刚看到评论。现在试试。
    • 我安装了 g++,但与我的 gcc 版本不同。升级我的 g++ 以匹配我的 gcc 为我修复了它。
    【解决方案2】:

    或者如果你有一个 CentOS 系统,你可能想要安装 gccgcc-c++

    $ yum install gcc gcc-c++
    

    然后使用pip安装pandas

    $ pip install pandas
    

    【讨论】:

      猜你喜欢
      • 2021-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多