0
我只是旋转了一些使用Python与Python 3.4和Django的环境,但它保持失败,看起来像使用pip install -r requirements.txt
安装时发生的错误这是来自Web控制台的事件:Elastic Beanstalk与Python 3.4仍然使用python 2.7
Time Type Details
2017-10-06 20:22:39 UTC-0600 WARN Environment health has transitioned from Pending to Degraded. Command failed on all instances. Initialization completed 69 seconds ago and took 14 minutes.
2017-10-06 20:22:20 UTC-0600 ERROR Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
2017-10-06 20:21:17 UTC-0600 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2017-10-06 20:21:17 UTC-0600 ERROR [Instance: i-0b46caf0e3099458c] Command failed on instance. Return code: 1 Output: (TRUNCATED)...) File "/usr/lib64/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2017-10-06 20:21:14 UTC-0600 ERROR Your requirements.txt is invalid. Snapshot your logs for details.
我跟着这个教程:在两个django-elastic-beanstalk-django和deploying-a-django-app-and-postgresql-to-aws-elastic-beanstalk我被困在同一工序
使用最新的AMI 2017-09支持Python 3 –
如何在Eb中使用AMI? –
找到您想要使用的AMI ID。然后在EB中将默认的AMI ID替换为所需的AMI ID。 –