Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.14 KB

installation.rst

File metadata and controls

37 lines (27 loc) · 1.14 KB

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://github.com/mongodb/mongo-python-driver.git pymongo
$ cd pymongo/
$ python setup.py 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 :ref:`certain cases <using-with-mod-wsgi>`, 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 setup.py:

$ python setup.py --no_ext install