from Flask import Flask ImportError: No module named Flask
<p>I am following the tutorial <a href="https://code.tutsplus.com/tutorials/creating-a-web-app-from-scratch-using-python-flask-and-mysql--cms-22972" rel="nofollow">here</a>.</p>

<p>My file looks like this:</p>

<pre><code>from flask import Flask
app = Flask(__name__)

@app.route("/")
def main():
    return "Welcome!"

if __name__ == "__main__":
    app.run()
</code></pre>

<p>I run <code>python app.py</code> and get the following:</p>

<pre><code>Traceback (most recent call last):
File "app.py", line 1, in &lt;module&gt;
from flask import Flask
ImportError: No module named Flask
</code></pre>

<p>I do have flask installed. I was thinking it's a $PATH issue. I don't really know where to begin as far as troubleshooting goes.</p>

<p><code>which flask</code> gives me:
<code>/usr/local/bin/flask</code></p>

<p><code>which python</code> gives me:
<code>/usr/bin/python</code></p>

<p>Any help is much appreciated, there are other similar issues out there but those solutions have not helped. Happy to answer any questions. Thank you.</p>

<p><strong>Answers to questions:</strong></p>

<p><strong>Q.</strong> <em>Which Python version?</em> <strong>A.</strong> Python 2.7.10 </p>

<p><strong>Q.</strong> <em>How did you install Flask?</em> <strong>A.</strong> pip install flask</p>

<p>I needed to do the following and the tutorial didn't really go into depth on how to install flask properly.</p>

<p>You must do the following in full.
<a href="http://flask.pocoo.org/docs/0.11/installation/#" rel="nofollow">http://flask.pocoo.org/docs/0.11/installation/#</a></p>

<p>Thanks for the responses.</p>

python flask filepath