eb : 术语 'eb' 未被识别为 cmdlet、函数、脚本文件或可运行程序的名称
eb : The term 'eb' is not recognized as the name of a cmdlet, function, script file, or operable program
我正在尝试按照此文档使用 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 to be able to use the eb
CLI command。
python3 -m pip install awsebcli
有关安装的更多信息:
我正在尝试按照此文档使用 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 to be able to use the eb
CLI command。
python3 -m pip install awsebcli
有关安装的更多信息: