Postgresql 将具有psycopg2依赖项的Flask应用程序部署到Elastic Beanstalk。ec2实例赢了';t安装yum软件包

Postgresql 将具有psycopg2依赖项的Flask应用程序部署到Elastic Beanstalk。ec2实例赢了';t安装yum软件包,postgresql,amazon-web-services,amazon-ec2,amazon-elastic-beanstalk,Postgresql,Amazon Web Services,Amazon Ec2,Amazon Elastic Beanstalk,我在将flask应用程序部署到EB时遇到问题 我正在使用eb-cli。我已在应用程序的根文件夹中创建了一个.ebextensions文件夹。该文件夹包含两个文件: 00dependencies.config packages: yum: libffi-devel : [] postgresql95-devel: [] container_commands: 00_wsgi_pass_headers: command: 'echo "WSGIPassAuthori

我在将flask应用程序部署到EB时遇到问题

我正在使用eb-cli。我已在应用程序的根文件夹中创建了一个.ebextensions文件夹。该文件夹包含两个文件:

00dependencies.config

packages:
  yum:
    libffi-devel : []
    postgresql95-devel: []
container_commands:
  00_wsgi_pass_headers:
    command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'
option_settings:
  "aws:elasticbeanstalk:container:python":
    WSGIPath: "api-siifra/manage.py"
  "aws:elasticbeanstalk:container:python:staticfiles":
    "/static/": "api-siifra/app/static/"
01 setup.config

packages:
  yum:
    libffi-devel : []
    postgresql95-devel: []
container_commands:
  00_wsgi_pass_headers:
    command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'
option_settings:
  "aws:elasticbeanstalk:container:python":
    WSGIPath: "api-siifra/manage.py"
  "aws:elasticbeanstalk:container:python:staticfiles":
    "/static/": "api-siifra/app/static/"
但是当我运行eb deploy时,我得到一个错误:

ERROR: Update environment operation is complete, but with errors. For more information, see troubleshooting documentation.
/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1
在“运行状况”下查看eb web界面,我看到错误:

ERROR: Update environment operation is complete, but with errors. For more information, see troubleshooting documentation.
/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1
命令在以下位置失败:错误:未找到pg_config可执行文件。安装psycopg2时

如果我通过ssh连接到有问题的ec2实例并手动安装postgresql95-devel,eb-deploy命令返回时没有错误

我想包:百胜。。。。在pip命令之前运行的*.config文件中

任何帮助都将不胜感激。

多谢各位