我是Django的新手,我正在尝试按照AWS here上的教程在AWS上部署Django应用程序。
一切正常,直到我执行命令eb create django-env
。部署退出并显示错误消息:无效的requirements.txt 。
在日志文件中,我有以下内容:
Collecting Django==1.9.12 (from -r /opt/python/ondeck/app/requirements.txt (line 1))
Downloading Django-1.9.12-py2.py3-none-any.whl (6.6MB)
Collecting pkg-resources==0.0.0 (from -r /opt/python/ondeck/app/requirements.txt (line 2))
Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r /opt/python/ondeck/app/requirements.txt (line 2)) (from versions: )
No matching distribution found for pkg-resources==0.0.0 (from -r /opt/python/ondeck/app/requirements.txt (line 2))
如果问题可能微不足道,我很抱歉,
但任何人都可以指出正确的方向吗? 提前谢谢!