Python error loading flask: ModuleNotFoundError: No module named 'flask'
Module Flask is installed for Python 2 (Python), but not for Python 3 (Python3) that you are using.
So, install it as pip3 install Flask
I'm really new to Python and I'm trying to do a tutorial on using flask. When I run the below code:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
    return "Hello, World!"
I get the following error message:
Traceback (most recent call last):
  File "/Users/myname/Documents/PycharmProjects/flask/test_webapp.py", line 1, in <module>
    from flask import Flask
ModuleNotFoundError: No module named 'flask
This doesn't make any sense to me as when I run:
python -m pip list
Flask 1.1.1 is on the list. 
I am using Python version 3.7.4.
I realise this questions has been asked before but after carefully reading through I can't find the correct answer. I realise this is quite basic but any help would be really appreciated!