pip 설치에서 awscli를 호출하는 방법은 무엇입니까?

pip 설치에서 awscli를 호출하는 방법은 무엇입니까?

가지다설치됨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:~$

#pythonIRC의 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/경로에 추가해야 합니까?

또한보십시오:

https://askubuntu.com/q/802544/45156

답변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를 사용하면 설치가 더 쉽습니다.

관련 정보