title: No module named flask while running uWSGI
body: <p>I have a very simple flask app (myflaskapp.py):</p>
  
  <pre><code>from flask import Flask
  
  app = Flask(__name__)
  
  @app.route('/')
  def index():
      return "&lt;span style='color:red'&gt;I am app 1&lt;/span&gt;"
  </code></pre>
  
  <p>If I run:</p>
  
  <pre><code>uwsgi --http-socket :3031 --plugin python --wsgi-file myflaskapp.py --callable app
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>Traceback (most recent call last):
    File "myflaskapp.py", line 1, in &lt;module&gt;
      from flask import Flask
  ImportError: No module named flask
  unable to load app 0 (mountpoint='') (callable not found or import error)
  *** no app loaded. going in full dynamic mode ***
  </code></pre>
  
  <p>and I don't understand why. I have flask installed (pip install flask). If I run ipython and import flask it also works there. Any ideas? Thanks!</p>