title: ImportError: No module named _ssl
body: <p>Ubuntu Maverick w/Python 2.7:</p>
  
  <p>I can't figure out what to do to resolve the following import error:</p>
  
  <pre><code>&gt;&gt;&gt; import ssl
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/ssl.py", line 60, in &lt;module&gt;
     import _ssl             # if we can't import it, let the error propagate
  ImportError: No module named _ssl
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  I recompiled the source. I was unable to figure out how to add the --with-ssl option the answers below mention, instead I got this to work by editing the lines regarding SSL in /Modules/Setup.dist.</p>