2017-05-28 112 views
0

我在使用docker工具包運行虛擬機以運行docker的Windows 10上。我嘗試推送到AWS ECS。我需要awscli來做到這一點。我運行命令pip install awscli,它似乎已成功安裝。但後來當我運行aws --version它說aws無法找到。不能安裝awscli到docker虛擬機

$ 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 

回答

0

我認爲它一定是一個點子與pip3問題。我卸載awscli並使用pip3重新安裝它,它工作。