简体   繁体   English

在ubuntu中安装AWS elasticbeanstalk命令行工具:error找不到'awsebcli == 3.10.0'分发,应用程序需要该分发

[英]Installing AWS elasticbeanstalk command line tool in ubuntu:error The 'awsebcli==3.10.0' distribution was not found and is required by the application

I am trying to install AWS elasticbeanstalk command line tool in my ubuntu machine 我正在尝试在我的ubuntu机器上安装AWS elasticbeanstalk命令行工具

Installed with pip install --upgrade --user awsebcli 安装pip install --upgrade --user awsebcli

But when i try to get the eb version with eb --version i got the following error 但是,当我尝试使用eb --version获取eb版本时,我收到了以下错误

Traceback (most recent call last): File "/home/shamon/.local/bin/eb", line 6, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources/ init .py", line 2927, in @_call_aside File "/usr/lib/python2.7/dist-packages/pkg_resources/ init .py", line 2913, in _call_aside f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/pkg_resources/ init .py", line 2940, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources/ init .py", line 635, in _build_master ws.require( requires ) File "/usr/lib/python2.7/dist-packages/pkg_resources/ init .py", line 943, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources/ init .py", line 829, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'awsebcli==3.10.0' distribution was not found and is required by the application 回溯(最近通话最后一个):文件“/home/shamon/.local/bin/eb”,第6行,从pkg_resources才能导入load_entry_point文件“/usr/lib/python2.7/dist-packages/pkg_resources/ 初始化 。 PY “线2927,在@_call_aside文件”/usr/lib/python2.7/dist-packages/pkg_resources/ INIT py“为,线2913,在_call_aside F(*指定参数时,** kwargs)文件”的/ usr / LIB / python2.7 / DIST-包/通过pkg_resources / 初始化 py”为,线2940,在_initialize_master_working_set working_set = WorkingSet._build_master()文件“/usr/lib/python2.7/dist-packages/pkg_resources/ INIT py”为,线635,在_build_master ws.require( 需要 )文件“/usr/lib/python2.7/dist-packages/pkg_resources/ INIT py”为,线943,在需要需要= self.resolve(parse_requirements(要求))文件“/usr/lib/python2.7/dist-packages/pkg_resources/ 初始化的.py”,线路829,在解决提高DistributionNotFound(REQ,requirers)pkg_resources.DistributionNotFound:在'awsebcli == 3.10.0'分布不找到并且是申请所要求的

Finally i resolved the issue. 最后我解决了这个问题。

First upgrade the pip and then pip install --upgrade --user awsebcli . 首先升级pip然后pip install --upgrade --user awsebcli

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

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