gpt4 book ai didi

amazon-elastic-beanstalk - 无法在Ubuntu上安装Elastic Beanstalk CLI

转载 作者:行者123 更新时间:2023-12-02 05:57:47 30 4
gpt4 key购买 nike

我正在尝试使用sudo pip install awsebcli在新的Ubuntu 14.04(在Windows的Linux子系统上)上安装Elastic Beanstalk CLI(awsebcli),但是启动eb命令只会返回以下错误:

flavien@XPS-FLAVIEN:~$ eb
Traceback (most recent call last):
File "/usr/local/bin/eb", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3036, in <module>
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3020, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 654, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 854, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'termcolor==1.1.0' distribution was not found and is required by awsebcli

任何想法可能出了什么问题吗?

最佳答案

如果安装后出现问题,可以使用以下命令重新安装awsebcli:

sudo pip3 install awsebcli --force-reinstall --upgrade
安装完成后,检查其安装位置:
which eb
$ /usr/local/bin/eb #i got eb installed in this path
接下来设置路径:
export PATH=/usr/local/bin:$PATH
然后跑

eb --version

EB CLI 3.14.6 (Python 3.5.2) #this is my installed version

关于amazon-elastic-beanstalk - 无法在Ubuntu上安装Elastic Beanstalk CLI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42598399/

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