How to install PyMongo
Question: I am currently trying to install MongoDB driver for Python on my Mac OS X
(mavericks).

But when I run

    
    
    [ Dsl  ~/Documents/python ] sudo easy_install pymongo
    

I get the following output

    
    
    Searching for pymongo
    Best match: pymongo 2.7
    Processing pymongo-2.7-py2.7-macosx-10.9-intel.egg
    Removing pymongo 2.7rc1 from easy-install.pth file
    Adding pymongo 2.7 to easy-install.pth file
    
    Using /Library/Python/2.7/site-packages/pymongo-2.7-py2.7-macosx-10.9-intel.egg
    Processing dependencies for pymongo
    Finished processing dependencies for pymongo
    

I try a lot of different commands, but nothing work. How to install pymongo ?

Thanks for your help

Edit: When I try to use it in a python script

    
    
    #!/usr/bin/env python3
    import pymongo
    
    client = MongoClient()
    

I have this error

    
    
    Traceback (most recent call last):
      File "./mongo.py", line 2, in <module>
        import pymongo
    ImportError: No module named 'pymongo'
    


Answer: Try these commands.
[Source](http://api.mongodb.org/python/2.0.1/installation.html)

    
    
    $ easy_install -U setuptools
    $ python -m easy_install pymongo
    

