无法安装Pandas!救命啊!(pip安装Pandas)

2024-04-28 14:30:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装Pandar,但我无法让pandas在我的linuxcentos6.4上安装。在

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

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

我该怎么解决这个问题?在


Tags: installpiptonopandas错误pluserror
2条回答

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

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

sudo apt-get install g++

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

$ yum install gcc gcc-c++

然后使用pip安装pandas

^{pr2}$

相关问题 更多 >