boto3 import fails python3.4
<p>I am trying to come up with python script, to get instance's Tag key <code>AutoScalingGroupName</code> value of the instance. I already installed <code>boto3</code> using <code>pip3</code>. </p>

<p>from python3.4 shell I was able to <code>import boto3</code> successfully.</p>

<pre><code>#python3.4
Python 3.4.3 (default, Jul  8 2016, 11:37:17)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import boto3
&gt;&gt;&gt; exit()
</code></pre>

<p>but the script fails with this error.</p>

<pre><code>#python test.py
Traceback (most recent call last):
  File "test.py", line 3, in &lt;module&gt;
    import boto3
ImportError: No module named boto3
#
</code></pre>

<p>here is the content of the <code>test.py</code></p>

<pre><code># cat test.py
#!/bin/python3.4
import requests
import boto3
import botocore.session
import urllib.request

instid = urllib.request.urlopen('http://169.254.169.254/latest/meta-data/instance-id').read().decode()
autossession = botocore.session.Session(profile='auto1')
ec2 = boto3.resource('ec2', region_name='us-west-2')
autosval = ec2.describe_instances(InstanceIds={instid}, Filters={"tag:AutoScalingGroupName"})
print(autosval)
#
</code></pre>