title: ImportError: No module named 'elasticsearch'
body: <p>I'm working with a cohort's python script, which calls on the elasticsearch module. However, when I run it in Jupyter, I get the following error:</p>
  
  <pre><code>ImportError Traceback (most recent call last)
  in ()
  2 for i in range(0,6):
  3 print('working on page: %d' %(i+1))
  ----&gt; 4 ingester(url_base+str(i*50))
  5
  
  in ingester(string)
  5 import re
  6 import time
  ----&gt; 7 from elasticsearch import Elasticsearch
  8 es = Elasticsearch()
  9 #start session s
  
  ImportError: No module named 'elasticsearch'
  </code></pre>
  
  <p>I'm using python 3.6 and jupyter is using the python 3 kernel. I've already installed the elasticsearch module by typing "sudo pip install elasticsearch" at the command line (this is on Ubuntu) and even did a restart just to be on the safe side.</p>
  
  <p>If it helps, the entirety of the code is at:</p>
  
  <p><a href="https://pastebin.com/g9MVQ5Dm" rel="nofollow noreferrer">https://pastebin.com/g9MVQ5Dm</a></p>
  
  <p>(the login info has obviously been changed)</p>
  
  <p>When I try to run it directly from the command line, it gives me the same error but with urllib3. This is kind of confusing, but I can only deal with one problem at a time.</p>
  
  <p>Any suggestions would be appreciated.</p>