2016-03-24 9 views
1

ich versuchte, das folgende boto library Beispiel auszuführen:Import: Kein Modul namens boto.ec2.autoscale

$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 

Nach dieser nützlichen PYTHONPATH Frage, ich verstehe nicht, warum das Modul nicht gefunden wird.

+1

Vielleicht ist es "Boto3"? – aliasm2k

+0

Danke. 'from boto3.ec2.autoscale import AutoScaleConnection' führte zu' ImportError: Kein Modul namens autoscale'. –

Antwort