I am currently runnning Ubuntu 12.04 with mongodb 2.2 and pymongo version 2.3. I am attempting to gather some information using Twitters API and I am getting an error when attempting to import mymongo. Here is what I have:
import pycurl, json
import pymongo
STREAM_URL = "https://stream.twitter.com/1/statuses/filter.json"
WORDS = "track=#obama"
USER = "myuser"
PASS = "mypass"
ImportError: No module named pymongo Any ideas?
sudo apt-get install python-pymongo- mjgpy3sudo apt-get install python python-pymongoor are you usingsudo pip install pymongo? I did a test on my local machine usingpip install pymongoand had no issues. - Shawn H