python - 用pycharm+flask 建立项目以后运行出现ImportError: No module named flask
怪我咯
怪我咯 2017-04-17 17:01:20
0
5
600
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(5)
左手右手慢动作

First make sure flask is installed and use pip list to check whether it is installed properly.
If it is installed under virtualenv, remember to start the virtual environment
You can refer to here
http://stackoverflow.com/questions/31252791/flask-importerror-no-module-named-flask

迷茫

Have you installed flask? Or if you use virtualenv, have you enabled the virtual environment? Check it out. If it is created by pycharm, it will automatically download and install flask for you

大家讲道理

What system do you have? Does the system have flask installed?
windows:

cd c:/python27
python -m pip list
#如果列表没有flask
python -m pip install flask

linux:

pip list
#如果列表没有flask
pip install flask
刘奇

Choose an interpreter with flask

Ty80

Maybe you used virtualenv, but pycharm did not start the virtualenv virtual environment

Open your interpreter and take a look

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template