The best way to install Python packages is pip . If you do not already have pip , see the instructions for installing it at http://www.pip-installer.org/en/latest/installing.html .
Once you have the pip, you can install PyMongo with:
pip install pymongo
which will download the latest version (currently 2.1). PyMongo uses optional C extensions, so for best performance, also set Python headers and the C build chain. On ubuntu, you can do this with
aptitude install build-essential python-dev
If you do this after installing PyMongo, you must reinstall it to make sure that the C extensions are built:
pip install -U pymongo
dcrosta
source share