尝试在 AWS Elastic Beanstalk EC2 实例上安装 Pandas (0.16.0)(位于我的 requests.txt 文件中)时出现以下错误:
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 所以不可能是内存问题。
我还确保 gcc 作为软件包安装在.ebextensions/00_gcc.config
:
packages:
yum:
gcc: []
gcc-c++: []
对于在 Elastic Beanstalk 上编译的 pandas,请确保同时拥有这两个包:gcc-c++
and python-devel
packages:
yum:
gcc-c++: []
python-devel: []
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)