0

I am trying to deploy a flask application on Amazon Elastic Beanstalk. I am having a very head time getting it to install matplotlib. Suggestions like this one for how to solve the problem involve installing packages from ubuntu, which I cannot do for Elastic Beanstalk. I am trying to install matplotlib 2.0.0 and I get the following error:

* The following required packages can not be built:
* freetype, png
Community
  • 1
  • 1
Michael
  • 13,244
  • 23
  • 67
  • 115

1 Answers1

0

You can use the packages key as described at http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html#linux-packages to install packages during your EB deploy.

Something like the following might work:

.ebextensions/01-install-freetype.config

packages: 
  yum:
    freetype: []
    png: []

Although on my system, freetype is already installed...

Brian
  • 5,300
  • 2
  • 26
  • 32