title: ModuleNotFoundError: No module named 'flask'
body: <p>After reading title of this post, don't try to make duplicate first because herewith content may be asked in different way. Btw, I'm very new in python and start learning now for work requirement.</p>
  
  <p>here are my dependencies</p>
  
  <p><code>virtualenv --version =&gt; 15.0.2</code></p>
  
  <p><code>pip --version =&gt; 19.0.3</code></p>
  
  <p><code>flask --version =&gt;  1.0.2, Python 2.7.10 (default, Aug 17 2018, 19:45:58)</code></p>
  
  <p><code>python --version =&gt; 3.7.1</code></p>
  
  <p>And, here is my source code of <code>main.py</code></p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route("/")
  def home():
      return "Hello, World!"
  </code></pre>
  
  <p>Problem is following error encountered when I render like <code>python main.py</code></p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File "main.py", line 1, in
    
        from flask import Flask ModuleNotFoundError: No module named 'flask'</p>
  </blockquote>
  
  <p>But when I render like <code>FLASK_APP=main.py flask run</code>, it was working. Please let me know how's difference between <code>python ...</code> and <code>FLASH_APP= ...</code></p>