我尝试运行以下命令 boto library示例:
$echo $PYTHONPATH
/Library/Python/2.7/site-packages/
$python
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
>>> from boto.ec2.autoscale import AutoScaleConnection
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named boto.ec2.autoscale
$ls $PYTHONPATH | grep -i boto
boto3
boto3-1.3.0.dist-info
botocore
botocore-1.4.6.dist-info
遵循这个有用的PYTHONPATH问题,我不明白为什么找不到该模块。
最佳答案
关于python - 导入错误 : No module named boto. ec2.autoscale,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36202727/