No module named 'elasticsearch'

Hello all,

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:

ImportError Traceback (most recent call last)
in ()
2 for i in range(0,6):
3 print('working on page: %d' %(i+1))
----> 4 ingester(url_base+str(i*50))

in ingester(string)
5 import re
6 import time
----> 7 from elasticsearch import Elasticsearch
8 es = Elasticsearch()
9 #start session s

ImportError: No module named 'elasticsearch'

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.

If it helps, the entirety of the code is at:

(the login info has obviously been changed)

Any suggestions would be appreciated.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.