在aws弹性bean中部署Django应用时出错

2024-03-28 20:58:47 发布

您现在位置:Python中文网/ 问答频道 /正文

[Instance: i-*****************] 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.

我得到了这个错误,谁能告诉我它是什么,为什么会发生。在

还有我的要求.txt是

Django==1.11.4,djangorestframework==3.5.1,psycopg2==2.7.3.1,gunicorn==19.7.0,Django-cors头==2.1.0,whitenoise==3.3.1,coreapi==2.3.1,sendgrid==5.2.0,awsebcli==3.5.1,pystan==2.17.0.0


Tags: djangoinstancepytxtlogoutputreturnon
1条回答
网友
1楼 · 发布于 2024-03-28 20:58:47

你的要求.txt应该是这样的:

Django==1.11.4
djangorestframework==3.5.1
psycopg2==2.7.3.1
gunicorn==19.7.0
django-cors-headers==2.1.0
whitenoise==3.3.1
coreapi==2.3.1
sendgrid==5.2.0
awsebcli==3.5.1
pystan==2.17.0.0

如果您使用

^{pr2}$

然后跑

source /opt/python/run/venv/bin/activate
source /opt/python/current/env
pip install -r /opt/python/current/app/requirements.txt

你应该看到错误。在

汤姆。在

相关问题 更多 >