gpt4 book ai didi

amazon-web-services - 无法运行 AWS CLI : "ImportError: cannot import name shlex_quote"

转载 作者:行者123 更新时间:2023-12-03 00:56:51 26 4
gpt4 key购买 nike

当我尝试运行 AWS CLI 时收到以下错误。我尝试安装了六个,但仍然不起作用。

有人可以告诉我出了什么问题吗?

我以前从未在这台计算机上运行过 AWS CLI。

Traceback (most recent call last):
File "/usr/local/bin/aws", line 23, in <module>
sys.exit(main())
File "/usr/local/bin/aws", line 19, in main
return awscli.clidriver.main()
File "/usr/local/lib/python3.3/site-packages/awscli/clidriver.py", line 49, in main
driver = create_clidriver()
File "/usr/local/lib/python3.3/site-packages/awscli/clidriver.py", line 58, in create_clidriver
event_hooks=emitter)
File "/usr/local/lib/python3.3/site-packages/awscli/plugin.py", line 44, in load_plugins
modules = _import_plugins(plugin_mapping)
File "/usr/local/lib/python3.3/site-packages/awscli/plugin.py", line 61, in _import_plugins
module = __import__(path, fromlist=[module])
File "/usr/local/lib/python3.3/site-packages/awscli/handlers.py", line 61, in <module>
from awscli.customizations.opsworks import initialize as opsworks_init
File "/usr/local/lib/python3.3/site-packages/awscli/customizations/opsworks.py", line 24, in <module>
from six.moves import shlex_quote
ImportError: cannot import name shlex_quote

最佳答案

AWSCLI 1.6.7 已损坏。 (我使用的是 Ubuntu 14.04.1 LTS)

sudo pip install awscli==1.6.6

关于amazon-web-services - 无法运行 AWS CLI : "ImportError: cannot import name shlex_quote",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27375652/

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