'gcc' failed during pandas build on AWS Elastic Beanstalk 'gcc' failed during pandas build on AWS Elastic Beanstalk pandas pandas

'gcc' failed during pandas build on AWS Elastic Beanstalk


For pandas being compiled on Elastic Beanstalk, make sure to have both packages: gcc-c++ and python-devel

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


Install python-dev

sudo apt-get install python-dev

For python3

sudo apt-get install python3-dev


on ec2 instances if you run into gcc error; try this

  1. sudo yum install gcc python-setuptools python-devel postgresql-devel

  2. sudo su -

  3. sudo pip install