Reputation: 121
I downloaded the package/project source from here for Windows: https://pypi.python.org/pypi/pymongo/
I don't quite understand how to install this, as I'm not sure what tools they're using or if they're using command prompt.
My Python33 folder is located in my C drive, if that helps.
Thanks.
Upvotes: 1
Views: 3282
Reputation: 4469
Mongo is a separate program from python all together. So, when you're trying to run PyMongo you first have to go through the steps of setting up your MongoDB (mongod.exe in Mongo folder); they also supply a mongo console and other tools you can use.
To verify pymongo was installed you need to just import pymongo
from IDLE or the command line; if it works then it's installed, if it fails you installed incorrectly.
Once it's installed correctly you connect your python script, using pymongo, to the locally run database (separate program) and query from there.
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.ndsearch # table name
... etc ...
Goodluck!
Upvotes: 1