首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >eb :术语“eb”不被识别为cmdlet、函数、脚本文件或可操作程序的名称。

eb :术语“eb”不被识别为cmdlet、函数、脚本文件或可操作程序的名称。
EN

Stack Overflow用户
提问于 2021-08-17 00:34:05
回答 1查看 1.4K关注 0票数 2

我正在尝试使用AWSBean秸秆部署我的Django应用程序,下面是以下文档:https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html

直到现在,一切都在运转:

代码语言:javascript
运行
复制
~/ebdjango$ eb init -p python-3.6 student-archive

当我运行这一行代码时,我会得到以下错误:

代码语言:javascript
运行
复制
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:

代码语言:javascript
运行
复制
option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: StudentArchive/wsgi.py

这是我的requirements.txt:

代码语言:javascript
运行
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-08-17 00:43:14

您必须安装[医]王氏病才能使用eb CLI命令

代码语言:javascript
运行
复制
python3 -m pip install awsebcli

有关安装的更多信息:

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68810475

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档