Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法安装熊猫!救命啊!(pip安装)_Python_Linux_Pandas_Centos_Pip - Fatal编程技术网

Python 无法安装熊猫!救命啊!(pip安装)

Python 无法安装熊猫!救命啊!(pip安装),python,linux,pandas,centos,pip,Python,Linux,Pandas,Centos,Pip,我正在尝试安装Pandar,但无法在我的linux Centos 6.4上安装pandas 运行pip安装会导致此错误: gcc: error trying to exec 'cc1plus': execvp: No such file or directory error: command 'gcc' failed with exit status 1 我应该怎么做才能解决这个问题?我很确定这是一个编译器错误,所以请尝试在系统上安装g++ 如果您正在linux上工作,请运行此命令 sudo

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

运行
pip安装
会导致此错误:

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

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

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

如果您正在linux上工作,请运行此命令

sudo apt-get install g++

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

$ yum install gcc gcc-c++
然后使用
pip

$ pip install pandas

是的,我已经安装了gcc。@FilipKorngut你看了吗?是的,刚刚看到评论。正在尝试。我安装了g++,但与我的gcc版本不同。升级我的g++以匹配我的gcc为我修复了它。