I had no problem installing all of the above on my Mac. On Windows, however, it was a bit of a pain. Thinking about it, it maybe that the mac install was Python 2.7, which everyone has been there and done that, whereas the Windows install was python 3.3, which may be a little later to the party.
Anyway, what I did:
- Install python 3.3 from http://www.python.org/download/releases/ Use the msi installer
- Install the pymongo using the msi from http://pypi.python.org/pypi/pymongo/ > Look down the bottom to find the windows installers. I suggest you don’t do an easy_install, it won’t compile properly and will either not work at all, or will have degraded performance.
- Install distribute. The instructions are here. I found it easiest to install from cygwin/git-bash using:
$ curl -O http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py
- Install pip using easy_install supplied by distribute. NB: you must do this from the DOS command line (and, it appears, be in the Scripts folder):
C:\> cd c:\Python33\Scripts\
C:\> easy_install pip
- I also installed bottle at this point.
C:\> pip install bottle
Many experienced python developers are recommending using virtualenv. It allows you have a virtual python install where you can pip install anything without blowing up your base python install by accident. You may have to use the performance retarded pymongo as Windows 7 (32-bit) doesn’t have the c libraries needed to build the necessary modules.
Hat tip to khattam for the distribute/easy_install usage.