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?
I was having the same issue and I installed it manually like this:
Works for me. Good luck.
I had the same problem. Pymongo conflicts with the
bson
package. This worked for me:I was having same issue. Easy way to do is install pip and install pymongo.
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py python get-pip.py python -m pip install pymongo
cd /tmp/
wget --no-check-certificate https://github.com/mongodb/mongo-python-driver/archive/master.zip
unzip master.zip
cd mongo-python-driver-master/
python setup.py install