Why can't my Python program find the jq module?
<p>I try to use the Python jq module:</p>

<pre><code>#!/usr/bin/python3
# Python 3.4

#--------------------------
import datetime
import sys
import urllib.request
import urllib.error
import time
from jq import jq
</code></pre>

<p>When I run it on the command line:</p>

<pre><code># ./daemon.py
</code></pre>

<p>it says this:</p>

<pre><code>Traceback (most recent call last):
  File "./daemon.py", line 10, in &lt;module&gt;
    from jq import jq
ImportError: No module named 'jq'
</code></pre>

<p>List of installed python packages:</p>

<pre><code># pip search jq 
</code></pre>

<p>shows this:</p>

<pre><code>...
jq (0.1.6)         - jq is a lightweight and flexible JSON processor.
...
</code></pre>

<p>So why can't my program import the jq module?</p>

<p><code>pip search</code> searches through <em>available</em> packages. To list <em>installed</em> packages, use <code>pip list</code>.</p>

<p>Try installing the <code>jq</code> module with <code>pip install jq</code>.</p>

python python-3.4 jq