title: Psycopg2 on Amazon Elastic Beanstalk
body: <p>I'm trying upload my project (in python) that uses Psycopg2  for Amazon Elastic Beanstalk. I'm doing this with a zip file containing my project and an requirements.txt file.</p>
  
  <p>But I'm receiving this error:</p>
  
  <blockquote>
    <p>Downloading/unpacking psycopg2>=2.4.6 (from -r
    /opt/python/ondeck/app/requirements.txt (line 3))   Running setup.py
    egg_info for package psycopg2
        Error: pg_config executable not found.</p>
  
  <pre><code>Please add the directory containing pg_config to the PATH
  or specify the full executable path with the option:
  
      python setup.py build_ext --pg-config /path/to/pg_config build ...
  
  or with the pg_config option in 'setup.cfg'.
  Complete output from command python setup.py egg_info:
  running egg_info
  </code></pre>
  </blockquote>
  
  <p>How can I solve this on Amazon?</p>