title: PyMongo import Connection - causes ImportError
body: <p>I'm calling the following simple script to connect to a mongo database via Python.</p>
  
  <p>This is an example from the <a href="https://education.10gen.com/courses/10gen/M101/2012_Fall/about" rel="nofollow noreferrer">10gen education course M101 - MongoDB for Developers</a>,
  and according to the forums I'm not the only person who has this issue.</p>
  
  <pre><code>import pymongo
  
  from pymongo import Connection
  connection = Connection('localhost', 27017)
  </code></pre>
  
  <p>I installed pymongo <a href="http://api.mongodb.org/python/current/" rel="nofollow noreferrer">with pip as described here</a>, and everything worked fine. 
  Now, when I try to import the Connection class, it gives me the following error:</p>
  
  <pre><code>ImportError: cannot import name Connection
  </code></pre>
  
  <p>I have looked at the following thread so far:
  <a href="https://stackoverflow.com/questions/10743630/pymongo-installed-but-import-fails">pymongo installed but import fails</a></p>
  
  <p>but it doesn't apply to my environment as I'm using Python 2.7.1 and I'm on Mac OS instead of CentOS. I've also done some research on Google but the only thing I found out so far is to verify that PyMongo is installed correctly, which I've done and returns:</p>
  
  <pre><code>Requirement already satisfied 
  </code></pre>
  
  <p>Any help would be appreciated in order to move on in the course. Thanks in advance.</p>