gpt4 book ai didi

python - eb : The term 'eb' is not recognized as the name of a cmdlet, 函数、脚本文件或可运行的程序

转载 作者:行者123 更新时间:2023-12-04 07:15:08 24 4
gpt4 key购买 nike

我正在尝试按照以下文档使用 AWS beanstalk 部署我的 Django 应用程序:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
到目前为止一切正常:

~/ebdjango$ eb init -p python-3.6 student-archive
当我运行那行代码时,我收到此错误:
eb : The term 'eb' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path 
is correct and try again.
At line:1 char:1
+ eb init -p python-3.6 studentarchive
+ ~~
+ CategoryInfo : ObjectNotFound: (eb:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
这可能是什么原因?
这是我的 django.config:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: StudentArchive/wsgi.py
这是我的requirements.txt:
asgiref==3.4.1
autopep8==1.5.7
backports.entry-points-selectable==1.1.0
certifi==2021.5.30
distlib==0.3.2
Django==3.2.6
filelock==3.0.12
pipenv==2021.5.29
platformdirs==2.2.0
pycodestyle==2.7.0
pytz==2021.1
six==1.16.0
sqlparse==0.4.1
toml==0.10.2
virtualenv==20.7.0
virtualenv-clone==0.5.6

最佳答案

您必须安装 awsebcli能够使用 eb CLI command .

python3 -m pip install awsebcli
有关安装的更多信息:
  • https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-advanced.html
  • 关于python - eb : The term 'eb' is not recognized as the name of a cmdlet, 函数、脚本文件或可运行的程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68810475/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com