简体   繁体   English

将 Django 部署到 AWS EB

[英]Deploying Django to AWS EB

paula@DESKTOP-BKTPP80:~$ virtualenv ~/eb-virt The executable python2 (from --python=python2) does not exist paula@DESKTOP-BKTPP80:~$ virtualenv ~/eb-virt 可执行的python2(来自--python=python2)不存在

Could someone please tell me why I am getting this error, I am trying to follow the following tutotial: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python-django-configure-for-eb有人可以告诉我为什么会出现此错误,我正在尝试遵循以下教程: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html#python -django-configure-for-eb

I have some many issues trying to folllow it..can't get pass that point...我有很多问题试图遵循它..无法通过这一点...

I've tried: paula@DESKTOP-BKTPP80:~$ virtualenv ~/eb-virt --python=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.7 The executable C:ProgramDataMicrosoftWindowsStart (from --python=C:ProgramDataMicrosoftWindowsStart) does not exist我试过: paula@DESKTOP-BKTPP80:~$ virtualenv ~/eb-virt --python=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.7 可执行文件 C:ProgramDataMicrosoftWindowsStart (来自 --python= C:ProgramDataMicrosoftWindowsStart) 不存在

I assume you are using Windows.我假设您使用的是 Windows。 You need to install python and virtualenvwrapper to create a virtual environment.您需要安装 python 和 virtualenvwrapper 来创建虚拟环境。 In the instructions it is called "eb-virt".在说明中它被称为“eb-virt”。 You can choose your own name.你可以选择你自己的名字。

Inside this virtual environment, you will then need to reinstall all your Django packages (and django too.).在这个虚拟环境中,您将需要重新安装所有 Django 包(以及 django。)。

I think that installing this process correctly will fix your error.我认为正确安装此过程将解决您的错误。 Post comments on this post if I can help further.如果我可以进一步提供帮助,请在此帖子上发表评论。 I just deployed django to eb a few days ago and figured it all out myself.几天前我刚刚将 django 部署到 eb 并自己弄清楚了。

Last tip: Use Python 3.7 with Linux 2 (AWS)最后提示:使用 Python 3.7 和 Linux 2 (AWS)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM