title: NameError: name 'flask' is not defined
body: <p>I am facing problem while running this line of code in the terminal:</p>
  
  <pre><code>$ sudo python app.py 
  </code></pre>
  
  <p>And  the Traceback is :</p>
  
  <pre><code>Traceback (most recent call last):
  
    File "app.py", line 7, in &lt;module&gt;
  
     APP = flask.Flask(__name__)
  
  NameError: name 'flask' is not defined
  </code></pre>
  
  <p>sudo pip install flask</p>
  
  <pre><code>Requirement already satisfied (use --upgrade to upgrade): flask in 
  
  /usr/local/lib/python2.7/dist-packages
  
  Requirement already satisfied (use --upgrade to upgrade): Werkzeug&gt;=0.7 in 
  
  /usr/local/lib/python2.7/dist-packages (from flask)
  
  Requirement already satisfied (use --upgrade to upgrade): Jinja2&gt;=2.4 in 
  
  /usr/local/lib/python2.7/dist-packages (from flask)
  
  Requirement already satisfied (use --upgrade to upgrade): 
  
  itsdangerous&gt;=0.21 in /usr/local/lib/python2.7/dist-packages (from flask)
  
  Requirement already satisfied (use --upgrade to upgrade): markupsafe in 
  
  /usr/lib/python2.7/dist-packages (from Jinja2&gt;=2.4-&gt;flask)
  
  Cleaning up...
  </code></pre>
  
  <p>Any help would be appreciated.</p>