title: Pymongo Installation & Executing on MacOS
body: <p>May i know why i couldn't run the pymongo on MacOS? I installed the pymongo with </p>
  
  <pre><code>sudo easy_install pymongo
  </code></pre>
  
  <p>but i not sure why will i getting this error </p>
  
  <pre><code>  conn = Connection(ip)
    File "/Library/Python/2.7/site-packages/pymongo-2.4.2-py2.7-macosx-10.8-intel.egg/pymongo/connection.py", line 180, in __init__
    File "/Library/Python/2.7/site-packages/pymongo-2.4.2-py2.7-macosx-10.8-intel.egg/pymongo/mongo_client.py", line 269, in __init__
  pymongo.errors.ConnectionFailure: could not connect to 192.168.0.1:27017: [Errno 51] Network is unreachable
  </code></pre>
  
  <p>thus i google and found i haven't initiate the pymongo yet, then i tried to run </p>
  
  <pre><code>mongod
  mongo
  ./mongod
  </code></pre>
  
  <p>then it returned me command not found. tried to execute this</p>
  
  <pre><code>sudo export PATH=$PATH:/usr/local/mongodb/bin
  </code></pre>
  
  <p>Anyone know what's happening to my installation and how could i fix it? Thanks.</p>