gpt4 book ai didi

python - “gcc”在 AWS Elastic Beanstalk 上构建 pandas 时失败

转载 作者:太空狗 更新时间:2023-10-29 17:07:16 24 4
gpt4 key购买 nike

尝试在 AWS Elastic Beanstalk EC2 实例上安装我的 requirements.txt 文件中的 Pandas (0.16.0) 时出现以下错误:

  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

我在运行 Python 2.7 的 64 位 Amazon Linux 2015.03 v1.3.0 上运行,之前在 t1.micro 实例上遇到过同样的错误,当我更改为 m3.medium 时问题得到解决,但我运行的是 m3.xlarge,所以不会是内存问题。

我还确保 gcc 作为一个包安装在 .ebextensions/00_gcc.config 中:

packages:
yum:
gcc: []
gcc-c++: []

最佳答案

对于在 Elastic Beanstalk 上编译的 pandas,确保有两个包:gcc-c++ python-devel

packages:
yum:
gcc-c++: []
python-devel: []

关于python - “gcc”在 AWS Elastic Beanstalk 上构建 pandas 时失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29516084/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com