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 C Extensions

By default, the driver attempts to build and install optional C extensions (used for increasing performance) when it is installed. If any 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 extensions, even if the extensions build properly. This can be done using a command line option to

$ python --no_ext install

Table Of Contents

Previous topic

PyMongo 1.10 Documentation

Next topic


This Page