尝试运行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
最佳答案
尝试通过pip卸载/ pip安装来重新安装六个。它为我工作。
关于amazon-web-services - 无法运行AWS CLI: “ImportError: cannot import name shlex_quote”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27375652/