2013-01-15 2 views
23

나는 이미 AWS 공식 포럼에서 Jan-2에 대해 질문했지만 대답은하지 않았습니다. 그래서, 나는 오류를 고칠 수 있도록 여기에 다시 게시하겠습니다.awscli 시작 중 오류

millisami at millisami in ~/Code/face_tester on design ✹ 
± which python                    
/usr/local/bin/python 
millisami at millisami in ~/Code/face_tester on design ✹ 
± python --version                   
Python 2.7.3 
millisami at millisami in ~/Code/face_tester on design ✹ 
± pip install awscli --upgrade                
Requirement already up-to-date: awscli in /usr/local/lib/python2.7/site-packages 
Requirement already up-to-date: botocore>=0.4.0 in /usr/local/lib/python2.7/site-packages/botocore-0.4.1-py2.7.egg (from awscli) 
Requirement already up-to-date: six>=1.1.0 in /usr/local/lib/python2.7/site-packages/six-1.2.0-py2.7.egg (from awscli) 
Requirement already up-to-date: argparse>=1.1 in /usr/local/lib/python2.7/site-packages/argparse-1.2.1-py2.7.egg (from awscli) 
Requirement already up-to-date: requests>=0.12.1,<1.0.0 in /usr/local/lib/python2.7/site-packages/requests-0.14.2-py2.7.egg (from botocore>=0.4.0->awscli) 
Requirement already up-to-date: python-dateutil>=2.1 in /usr/local/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg (from botocore>=0.4.0->awscli) 
Cleaning up... 
millisami at millisami in ~/Code/face_tester on design ✹ 
± aws help                              
Traceback (most recent call last): 
    File "/usr/local/share/python/aws", line 15, in <module> 
    import awscli.clidriver 
    File "/usr/local/lib/python2.7/site-packages/awscli/__init__.py", line 18, in <module> 
    import botocore.base 
ImportError: No module named botocore.base 
millisami at millisami in ~/Code/face_tester on design1 ↵ ✹ 

핍에게 성공적인를 설치 한 이후,하지만 botocore 인 이유 인 :이 페이지 http://docs.amazonwebservices.com/cli/latest/userguide/cli-chap-getting-started.html

에 명시된 그리고 다음은 설치 세부 그대로


나는 awscli 설치 그런 파일을보고하지 않았다 ??

답변

47

는 맥 OS를 사용하는 경우이 명령을

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

나는 똑같은 문제를 겪고 있었고,이 문제가 해결되었습니다. –

+1

동일한 문제가 있지만 작동하지 않습니다. 이전과 같이 실행 한 후에도 동일한 오류가 발생합니다. –

+0

다른 문제가 있지만이 문제는 – Idefixx

1
brew install awscli 

을보십시오. 시에라에서 작동합니다

+1

pip 설치로 인해 내 문제가 해결되지 않아 양조 버전을 강제 적용했습니다. –

+0

동일한 문제가 있지만 작동하지 않습니다. 이전과 같이 실행 한 후에도 동일한 오류가 발생합니다. –

2

비슷한 boto 종속성과 동일한 문제가있었습니다. AWS EC2 Ubuntu 인스턴스에서 기본적으로 sudo apt-get install awscli을 실행했으며 완전히 상자 밖으로 나갔습니다.

sudo pip install boto --upgrade 
sudo pip install boto3 --upgrade 
sudo pip install iso8601 
sudo pip install sqlalchemy 

이 명령을 실행 한 후 명령 행에서 aws을 입력하면이 "사용법 : ..."예상 생산 된 : 메시지를 반대

시간 주위를 긁는 후, 다음 t'trick 할 것 같습니다 파이썬 스택 트레이스에.

다른 사람에게 도움이되기를 바랍니다.

0

나는 동일한 문제가 있었지만 pip/pip3을 통해 awscli를 업그레이드하는 것은 저에게 효과적이지 않았습니다. 문제의 근본 원인은 근본적으로 2 가지 awscli 간의 충돌입니다. apt-get install awscli을 통해 설치 한 후 pip3 insstall awscli을 통해 설치 한 경우. 이 문제를 해결하기 위해 apt-get을 통해 설치된 awscli를 제거했습니다. 그렇게하면/usr/bin/aws에서 aws 바이너리가 제거되므로/usr/loca/bin/aws에서 소프트 링크가 생성됩니다.

관련 문제