title: import _socket: "Import Error: DLL load failed"
body: <p>I was attempting to install Django and pymc yesterday.  After running into a lot of problems I decided to just re-install Python 2.7.  I've done that but am now having problems import almost anything.  I get a bunch of lines, the last of which are:</p>
  
  <pre><code> File "c:\python27\lib\httplib.py", line 71, in &lt;module&gt;
     import socket
   File "c:\python27\lib\socket.py", line 47, in &lt;module&gt;
     import _socket
  ImportError: DLL load failed: The specified procedure could not be found.
  </code></pre>
  
  <p>Whether I run python in the command prompt (which works) and try to do <code>import pip</code>, or type outside of the shell <code>python get-pip.py</code> I get those same last lines.</p>
  
  <p>I should state for the record that I have two versions of python on my machine, one being 2.7, and the other being I THINK 2.6 located in a canopy folder, but that doesn't work either, giving an error message of `ImportError: No module named os".  I have my PATH environment variable leading with "c:\python27;c:\python27\scripts".</p>
  
  <p>I've re-installed python a couple times now, and have tried the repair option as well, but to no avail.  Anyone have any ideas?</p>
  
  <p>EDIT:  It seems that when I uninstalled Python, I neglected to delete the C:\Python27 folder.  I uninstalled again, deleted the folder, then reinstalled and it works now.  Thanks for the help.</p>