ImportError: No module named datadog
<p>I'm new to datadog. I followed this <a href="http://docs.datadoghq.com/api/" rel="nofollow">post</a>, and replaced in my app/api keys.</p>

<p>I have : <code>nginx_dd.py</code></p>

<pre><code># Make sure you replace the API and/or APP key below
# with the ones for your account

from datadog import initialize, api
import time

options = {
    'api_key': '***',
    'app_key': '***'
}

initialize(**options)

now = int(time.time())
query = 'system.cpu.idle{*}by{host}'
print api.Metric.query(start=now - 3600, end=now, query=query)
</code></pre>

<hr>

<p>When I run it <code>python nginx_dd.py</code>, I kept getting </p>

<blockquote>
  <p>ImportError: No module named datadog</p>
</blockquote>

<hr>

<p>Any hints / suggestions on this will be a huge helps ! </p>

<p>Verify if the datadog package is installed in your environment.</p>

<p>You can do this with this command: </p>

<pre><code>$ pip freeze | grep datadog
</code></pre>

<p>If it's not installed, you can install it with this command:</p>

<pre><code>$ pip install datadog
</code></pre>

python datadog