<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Installing MongoEngine — MongoEngine 0.7.9 documentation</title> <link rel="stylesheet" href="../_static/nature.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '0.7.9', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <link rel="top" title="MongoEngine 0.7.9 documentation" href="../index.html" /> <link rel="up" title="User Guide" href="index.html" /> <link rel="next" title="Connecting to MongoDB" href="connecting.html" /> <link rel="prev" title="User Guide" href="index.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="connecting.html" title="Connecting to MongoDB" accesskey="N">next</a> |</li> <li class="right" > <a href="index.html" title="User Guide" accesskey="P">previous</a> |</li> <li><a href="../index.html">MongoEngine 0.7.9 documentation</a> »</li> <li><a href="index.html" accesskey="U">User Guide</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="installing-mongoengine"> <h1>Installing MongoEngine<a class="headerlink" href="#installing-mongoengine" title="Permalink to this headline">ΒΆ</a></h1> <p>To use MongoEngine, you will need to download <a class="reference external" href="http://mongodb.org/">MongoDB</a> and ensure it is running in an accessible location. You will also need <a class="reference external" href="http://api.mongodb.org/python">PyMongo</a> to use MongoEngine, but if you install MongoEngine using setuptools, then the dependencies will be handled for you.</p> <p>MongoEngine is available on PyPI, so to use it you can use <strong class="program">pip</strong>:</p> <div class="highlight-console"><div class="highlight"><pre><span class="gp">$</span> pip install mongoengine </pre></div> </div> <p>Alternatively, if you don’t have setuptools installed, <a class="reference external" href="http://pypi.python.org/pypi/mongoengine/">download it from PyPi</a> and run</p> <div class="highlight-console"><div class="highlight"><pre><span class="gp">$</span> python setup.py install </pre></div> </div> <p>To use the bleeding-edge version of MongoEngine, you can get the source from <a class="reference external" href="http://github.com/hmarr/mongoengine/">GitHub</a> and install it as above:</p> <div class="highlight-console"><div class="highlight"><pre><span class="gp">$</span> git clone git://github.com/hmarr/mongoengine <span class="gp">$</span> <span class="nb">cd </span>mongoengine <span class="gp">$</span> python setup.py install </pre></div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="index.html" title="previous chapter">User Guide</a></p> <h4>Next topic</h4> <p class="topless"><a href="connecting.html" title="next chapter">Connecting to MongoDB</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/guide/installing.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="connecting.html" title="Connecting to MongoDB" >next</a> |</li> <li class="right" > <a href="index.html" title="User Guide" >previous</a> |</li> <li><a href="../index.html">MongoEngine 0.7.9 documentation</a> »</li> <li><a href="index.html" >User Guide</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2012, MongoEngine Authors. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>