title: Script can't import modules, import in shell works fine
body: <p>I recently ran into an issue on my development box. I can run my script line by line fine within the interactive shell, but it fails as soon as it tries to import a module when running the script from the command line.</p>
  
  <p>Specifically, I'm trying to use: <code>from flask import Flask</code></p>
  
  <p>and the error I get is:</p>
  
  <pre><code>from flask import Flask
  ImportError: cannot import name Flask
  </code></pre>
  
  <p>It was working perfectly fine a couple days ago and I didn't make any changes to the system (that I can recall) so I can't figure out if this is an issue with my python shell or flask.</p>
  
  <p>Things I've checked/tried:</p>
  
  <ul>
  <li>deleting/reinstalling flask via pip</li>
  <li>confirming C:\Python27\lib\site-packages is in my system path</li>
  <li>clearing and re-adding the directories in my PATH environment variable</li>
  <li>uninstalling/reinstalling Python 2.7.3</li>
  <li><p>successfully running the following script to test my python shell:</p>
  
  <pre><code>from time import gmtime, strftime
  print strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())
  </code></pre></li>
  </ul>
  
  <p>I'm open to any new troubleshooting suggestions.</p>