我已经在 1 月 2 日的 AWS 官方论坛上问过这个问题,但没有任何答复。所以,我再次在这里发布它,以便我可以修复错误。
我按照本页http://docs.amazonwebservices.com/cli/latest/userguide/cli-chap-getting-started.html中的说明安装了 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 ↵ ✹
自从安装 pip 成功,但为什么那个botocore被报告没有这样的文件?