title: Deploying Flask App in AWS Elastic Beanstalk
body: <p>when I deploy my flask app, it says successful but when I retrieve the logs, I see the error "Flask not found". I have flask in my requirements file. Any help.</p>
  
  <p>[Sat Jan 11 06:51:50.503908 2020] [:error] [pid 3393] [remote 127.0.0.1:0] mod_wsgi (pid=3393): Target WSGI script '/opt/python/current/app/application.py' cannot be loaded as Python module.</p>
  
  <p>[Sat Jan 11 06:51:50.503953 2020] [:error] [pid 3393] [remote 127.0.0.1:0] mod_wsgi (pid=3393): Exception occurred processing WSGI script '/opt/python/current/app/application.py'.</p>
  
  <p>[Sat Jan 11 06:51:50.504123 2020] [:error] [pid 3393] [remote 127.0.0.1:0] Traceback (most recent call last): [Sat Jan 11 06:51:50.504151 2020] [:error] [pid 3393] [remote 127.0.0.1:0]   File "/opt/python/current/app/application.py", line 1, in 
  [Sat Jan 11 06:51:50.504156 2020] [:error] [pid 3393] [remote 127.0.0.1:0]     from flask import Flask</p>
  
  <p>[Sat Jan 11 06:51:50.504170 2020] [:error] [pid 3393] [remote 127.0.0.1:0] ModuleNotFoundError: No module named 'flask'. </p>
  
  <p>Below is my application.py content</p>
  
  <pre><code>from flask import Flask
  from myapp import create_app
  
  application = create_app()
  
  if __name__ == "__main__":
      application.run()
  </code></pre>
  
  <p>Below is the content of my requirements.txt</p>
  
  <pre><code>Click==7.0
  -e git+https://github.com/xxxxxx/xxx.git@xxxx#egg=xxx
  Flask==1.1.1
  itsdangerous==1.1.0
  Jinja2==2.10.3
  MarkupSafe==1.1.1
  numpy==1.18.1
  PyYAML==3.13
  scipy==1.4.1
  Werkzeug==0.16.0
  </code></pre>