拥有已安装AWS CLI 的pip install --user awscli
调用语法是什么awscli
?它列在这里:
thufir@doge:~$
thufir@doge:~$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
adium-theme-ubuntu (0.3.4)
attrs (15.2.0)
awscli (1.11.35)
beautifulsoup4 (4.4.1)
botocore (1.4.92)
chardet (2.3.0)
colorama (0.3.7)
cryptography (1.2.3)
dnspython (1.12.0)
docutils (0.13.1)
enum34 (1.1.2)
futures (3.0.5)
gmpy2 (2.0.7)
greenlet (0.4.9)
html5lib (0.999)
idna (2.0)
iotop (0.6)
ipaddress (1.0.16)
jmespath (0.9.0)
lxml (3.5.0)
nglister (0.0.0)
PAM (0.4.2)
pip (9.0.1)
pyasn1 (0.1.9)
pyasn1-modules (0.0.7)
pyOpenSSL (0.15.1)
pyserial (3.0.1)
python-application (2.0.2)
python-dateutil (2.6.0)
python-eventlib (0.2.2)
python-gnutls (3.0.0)
python-msrplib (0.19.0)
python-otr (1.2.0)
python-sipsimple (3.1.0)
python-xcaplib (1.2.0)
PyYAML (3.12)
rsa (3.4.2)
s3transfer (0.1.10)
service-identity (16.0.0)
setuptools (32.3.1)
sipclients (3.0.0)
six (1.10.0)
Twisted (16.0.0)
unity-lens-photos (1.0)
wheel (0.29.0)
zope.interface (4.1.3)
thufi
thufir@doge:~$
#python
IRC上的 cdunklau 表示:
thufir@doge:~$
thufir@doge:~$ ll .local/bin/aws*
-rwxrwxr-x 1 thufir thufir 814 Jan 2 00:06 .local/bin/aws*
-rwxrwxr-x 1 thufir thufir 204 Jan 2 00:06 .local/bin/aws_bash_completer*
-rwxrwxr-x 1 thufir thufir 1432 Jan 2 00:06 .local/bin/aws.cmd*
-rwxrwxr-x 1 thufir thufir 1135 Jan 2 00:06 .local/bin/aws_completer*
-rwxrwxr-x 1 thufir thufir 1915 Jan 2 00:06 .local/bin/aws_zsh_completer.sh*
thufir@doge:~$
看路径:
thufir@doge:~$
thufir@doge:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
thufir@doge:~$
我需要添加~/.local/bin/
到路径中吗?
也可以看看:
答案1
解决方案:
thufir@doge:~$
thufir@doge:~$ tail .bashrc -n 1
export PATH="/home/thufir/.local/bin/:$PATH"
thufir@doge:~$
thufir@doge:~$ aws configure
AWS Access Key ID [None]:
使用 sudo 安装会更容易。