How do I auto load packages (such as libjpeg-dev) to my Elastic Beanstalk App?

不问归期 提交于 2019-12-01 12:27:53

I ran into the same issue, instead of setting up a completely new Elastic Beanstalk app, I connected to the EC2 instance via SSH and re-installed PIL (or Pillow).

On EC2 instance, I ran the following commands:

source /opt/python/run/venv/bin/activate
pip uninstall PIL
pip install PIL

Now PIL supports jpeg encoding =)

I "fixed" this by setting up a completely new Elastic Beanstalk app and deploying the exact same application there. It then successfully installed the libjpeg package.

I was never able to find out the answer to why it didnt work on the first Elastic Beanstalk App. But maybe it had something to do with PIL was first installed and then it couldnt install libjpeg after.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!