gpt4 book ai didi

command-line - 尝试安装 AWS CLI,卡在一个步骤上

转载 作者:行者123 更新时间:2023-12-03 10:19:17 24 4
gpt4 key购买 nike

我正在尝试为 mac 命令行安装 aws,我想我不明白我需要做什么我在终端上安装了带有 wget 的 aws 捆绑包,解压缩它完成了所有操作,但是当我需要配置我的凭据时,什么也没有出现把aws配置..

以下是使用说明:
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html
这是输出的内容

an$ aws configuration
Traceback (most recent call last):
File "/usr/local/bin/aws", line 15, in <module>
import awscli.clidriver
File "/usr/local/aws/lib/python2.7/site-packages/awscli/clidriver.py", line 31, in <module>
from awscli.help import ProviderHelpCommand
File "/usr/local/aws/lib/python2.7/site-packages/awscli/help.py", line 20, in <module>
from docutils.core import publish_string
File "/usr/local/aws/lib/python2.7/site-packages/docutils/core.py", line 20, in <module>
from docutils import frontend, io, utils, readers, writers
File "/usr/local/aws/lib/python2.7/site-packages/docutils/frontend.py", line 41, in <module>
import docutils.utils
File "/usr/local/aws/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>
import docutils.io
File "/usr/local/aws/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File "/usr/local/aws/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module>
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/usr/local/aws/lib/python2.7/locale.py", line 511, in getdefaultlocale
return _parse_localename(localename)
File "/usr/local/aws/lib/python2.7/locale.py", line 443, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

有任何想法吗_?

最佳答案

尝试将以下几行添加到 ~/.bash_profile :

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

关于command-line - 尝试安装 AWS CLI,卡在一个步骤上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22265659/

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