Installing / Upgrading

PyMongo is in the Python Package Index. To install PyMongo using setuptools do:

$ easy_install pymongo

To upgrade do:

$ easy_install -U pymongo

If you’d rather install directly from the source (i.e. to stay on the bleeding edge), check out the latest source from github and install the driver from the resulting tree:

$ git clone git:// pymongo
$ cd pymongo/
$ python install

Installing Without the C Extension

By default, the driver attempts to build and install an optional C extension (used for increasing performance) when it is installed. If the extension fails to build the driver will be installed anyway but a warning will be printed.

In certain cases, you might wish to install the driver without the C extension, even if the extension builds properly. This can be done using a command line option to

$ python --no_ext install

Table Of Contents

Previous topic

PyMongo 1.6 Documentation

Next topic


This Page