ImportError: No module named impyla
<p>I have installed impyla and it's dependencies following <a href="https://github.com/cloudera/impyla" rel="nofollow">this</a> guide. The installation seems to be successful as now I can see the folder <strong>"impyla-0.13.8-py2.7.egg"</strong> in the Anaconda folder (64-bit Anaconda 4.1.1 version).</p>

<p>But when I import impyla in python, I get the following error:</p>

<pre><code>&gt;&gt;&gt; import impyla
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: No module named impyla
</code></pre>

<p><strong>I have installed 64-bit Python 2.7.12</strong></p>

<p><strong>Can any body please explain me why I am facing this error?</strong> I am new on Python and have been spending allot of time on different blogs, but I don't see much information present there yet. Thanks in advance for your time.</p>

<p>Usage is a little bit different then you mentioned (from <a href="https://github.com/cloudera/impyla" rel="nofollow">https://github.com/cloudera/impyla</a>)</p>

<p>Impyla implements the Python DB API v2.0 (PEP 249) database interface (refer to it for API details):</p>

<pre><code>from impala.dbapi import connect
conn = connect(host='my.host.com', port=21050)
cursor = conn.cursor()
cursor.execute('SELECT * FROM mytable LIMIT 100')
print cursor.description  # prints the result set's schema
results = cursor.fetchall()
</code></pre>

<p>The Cursor object also exposes the iterator interface, which is buffered (controlled by cursor.arraysize):</p>

<pre><code>cursor.execute('SELECT * FROM mytable LIMIT 100')
for row in cursor:
    process(row)
</code></pre>

<p>You can also get back a pandas DataFrame object</p>

<pre><code>from impala.util import as_pandas
df = as_pandas(cur)
# carry df through scikit-learn, for example
</code></pre>

python hadoop thrift impala