Не могу установить aws-cli - PullRequest
0 голосов
/ 07 июня 2019

Я установил aws-cli с pip3, но не могу запустить aws. если я установлю его с помощью этой команды pip3 install awscli --upgrade --user, я получу результат как

Requirement already up-to-date: awscli in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (1.16.173)
Requirement already satisfied, skipping upgrade: rsa<=3.5.0,>=3.1.2 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from awscli) (3.4.2)
Requirement already satisfied, skipping upgrade: botocore==1.12.163 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from awscli) (1.12.163)
Requirement already satisfied, skipping upgrade: PyYAML<=3.13,>=3.10 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from awscli) (3.13)
Requirement already satisfied, skipping upgrade: docutils>=0.10 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from awscli) (0.14)
Requirement already satisfied, skipping upgrade: colorama<=0.3.9,>=0.2.5 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from awscli) (0.3.9)
Requirement already satisfied, skipping upgrade: s3transfer<0.3.0,>=0.2.0 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from awscli) (0.2.1)
Requirement already satisfied, skipping upgrade: pyasn1>=0.1.3 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from rsa<=3.5.0,>=3.1.2->awscli) (0.4.5)
Requirement already satisfied, skipping upgrade: jmespath<1.0.0,>=0.7.1 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from botocore==1.12.163->awscli) (0.9.4)
Requirement already satisfied, skipping upgrade: urllib3<1.26,>=1.20; python_version >= "3.4" in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from botocore==1.12.163->awscli) (1.25.3)
Requirement already satisfied, skipping upgrade: python-dateutil<3.0.0,>=2.1; python_version >= "2.7" in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from botocore==1.12.163->awscli) (2.8.0)
Requirement already satisfied, skipping upgrade: six>=1.5 in /Users/MYNAME/Library/Python/3.7/lib/python/site-packages (from python-dateutil<3.0.0,>=2.1; python_version >= "2.7"->botocore==1.12.163->awscli) (1.12.0)

И если я запускаю команду aws, результаты bash: aws: command not found

Я пытался установить PATH, но я не могу определить точный путь aws cli.

which python результаты /usr/local/bin/python,

ls -al /usr/local/bin/python результаты

/usr/local/bin/python -> ../Cellar/python/2.7.11/bin/python

Я не могу понять, как мне установить PATH на моем .bash_profile.

Ответы [ 2 ]

0 голосов
/ 16 июля 2019

Попробуйте:

sudo pip install awscli

Если после этого вы не можете использовать команду aws, попробуйте в новой вкладке терминала или в окне

0 голосов
/ 12 июня 2019

Пожалуйста, попробуйте это.Это обновит awscli до последней версии.

sudo pip install awscli --force-reinstall --upgrade

...