Skip to content Skip to sidebar Skip to footer

Error When Trying To Deploy Flask App To Aws Elastic Beanstalk

I am trying to deploy a Flask application using AWS Elastic Beanstalk and unfortunately have run into the following error. What confuses me is that the current version of pip in my

Solution 1:

This is because the pip version is too old. you can add .ebextensions to solve this.

  1. add .ebextensions folder in the root folder of your app
  2. put a pip.config file inside it, the content is :

commands:
  update_pip:
  command: "/opt/python/run/venv/bin/pip install --upgrade pip"
  1. run eb deploy again, it will be resolved.

Post a Comment for "Error When Trying To Deploy Flask App To Aws Elastic Beanstalk"