在AWS Elastic Beanstalk上构建熊猫期间'gcc'失败
尝试在AWS Elastic Beanstalk EC2实例上安装我的requirements.txt文件中的Pandas(0.16.0)时出现以下错误:
Getting the following error when trying to install Pandas (0.16.0), which is in my requirements.txt file, on AWS Elastic Beanstalk EC2 instance:
building 'pandas.msgpack' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__LITTLE_ENDIAN__=1 -Ipandas/src/klib -Ipandas/src -I/opt/python/run/venv/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c pandas/msgpack.cpp -o build/temp.linux-x86_64-2.7/pandas/msgpack.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
我正在64bit Amazon Linux 2015.03 v1.3.0 running Python 2.7
上运行,并且以前在t1.micro实例上遇到了相同的错误,当我更改为m3.medium时已解决,但我正在运行m3.xlarge,因此无法是内存问题.
I'm running on 64bit Amazon Linux 2015.03 v1.3.0 running Python 2.7
and previously ran into this same error on a t1.micro instance, which was resolved when I change to a m3.medium, but I'm running an m3.xlarge so can't be a memory issue.
我还确保将gcc作为软件包安装在.ebextensions/00_gcc.config
中:
I have also ensured that gcc is installed as a package in .ebextensions/00_gcc.config
:
packages:
yum:
gcc: []
gcc-c++: []
对于在Elastic Beanstalk上编译的熊猫,请确保同时具有以下两个程序包:gcc-c++
和 python-devel
For pandas being compiled on Elastic Beanstalk, make sure to have both packages: gcc-c++
and python-devel
packages:
yum:
gcc-c++: []
python-devel: []