将django制作的web上载到aws时出现问题

qacovj5a  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(203)

我将遵循本教程:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django为eb配置
当我这样做时:

eb deploy

我得到以下错误:

[2021-07-08T12:48:37.858Z] ERROR [4740]  : Command execution failed: Activity failed. (ElasticBeanstalk::ActivityFatalError)
caused by: DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
  Collecting APScheduler==3.7.0 (from -r /opt/python/ondeck/app/requirements.txt (line 1))
  /opt/python/run/venv/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.

但是我有一个python版本3.9.5
我的配置文件是:

option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: ebdjango.wsgi:application

container_commands:
  01_postgresql:
    command: sudo yum -y install gcc python-setuptools python-devel postgresql-devel
  02_postgresql:
    command: sudo easy_install psycopg2

非常感谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题