I am unable to do this:
from pymongo import MongoClient
I get:
>>> import pymongo >>> from pymongo import
This problem may occur if you have multiple .py programs in the current working directory. Deleting them solved my error. I am not sure of the reason though.