无法将awscli安装到docker VM

时间:2017-05-28 01:22:05

标签: amazon-web-services docker aws-cli amazon-ecs

我在Windows 10上使用docker工具包运行VM以便docker运行。我试图推送到AWS ECS。我需要awscli这样做。我运行命令pip install awscli,似乎已成功安装。但是当我运行aws --version时,它说无法找到aw。

$ pip install awscli
Requirement already satisfied: awscli in 
c:\users\matthew\appdata\roaming\python\python35\site-packages
Requirement already satisfied: PyYAML<=3.12,>=3.10 in 
c:\users\matthew\appdata\local\programs\python\python35\lib\site-packages 
(from awscli)
Requirement already satisfied: docutils>=0.10 in 
c:\users\matthew\appdata\local\programs\python\python35\lib\site-packages 
(from awscli)
Requirement already satisfied: botocore==1.5.56 in 
c:\users\matthew\appdata\roaming\python\python35\site-packages (from awscli)
Requirement already satisfied: colorama<=0.3.7,>=0.2.5 in 
c:\users\matthew\appdata\local\programs\python\python35\lib\site-packages 
(from awscli)
Requirement already satisfied: rsa<=3.5.0,>=3.1.2 in 
c:\users\matthew\appdata\roaming\python\python35\site-packages (from awscli)
Requirement already satisfied: s3transfer<0.2.0,>=0.1.9 in 
c:\users\matthew\appdata\roaming\python\python35\site-packages (from awscli)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in 
c:\users\matthew\appdata\local\programs\python\python35\lib\site-packages 
(from botocore==1.5.56->awscli)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in 
c:\users\matthew\appdata\roaming\python\python35\site-packages (from 
botocore==1.5.56->awscli)
Requirement already satisfied: pyasn1>=0.1.3 in 
c:\users\matthew\appdata\roaming\python\python35\site-packages (from 
rsa<=3.5.0,>=3.1.2->awscli)
Requirement already satisfied: six>=1.5 in 
c:\users\matthew\appdata\local\programs\python\python35\lib\site-packages 
(from python-dateutil<3.0.0,>=2.1->botocore==1.5.56->awscli)

$ aws --version
bash: aws: command not found

1 个答案:

答案 0 :(得分:0)

我认为一定是pip与pip3问题。我卸载了awscli并使用pip3重新安装它并且它可以工作。