[英]ModuleNotFoundedError:No modul named flask
I am using Windows 10 Home.我正在使用 Windows 10 家。 I have Python 3.9.1 and Visual studio code.I am studying to Flask in Visual Studio Code.
我有 Python 3.9.1 和 Visual Studio 代码。我正在学习 Visual Studio 代码中的 Flask。 I already installed Flask.But when I try to run this code in visual studio codes tereminal:
我已经安装了 Flask。但是当我尝试在 Visual Studio 代码终端中运行此代码时:
python file.py #the file is the name of the my test page
I take the no modul named flask.But when I try to run my codes its working.Or I try to again install flask the output says I was already have flask. I take the no modul named flask.But when I try to run my codes its working.Or I try to again install flask the output says I was already have flask.
Note:I am new about the programs.So I don't know what should I do?注意:我是新的程序。所以我不知道该怎么办? Note2:I am trying to run Python codes with HTML and CSS.
注意 2:我正在尝试使用 HTML 和 CSS 运行 Python 代码。
For using "flask" in VS Code, you could refer to the following:关于在 VS Code 中使用“flask”,您可以参考以下内容:
Check whether the python used by the terminal is the same as the selected python: ( python --version
or pip --version
)检查终端使用的python是否与选择的python相同:(
python --version
or pip --version
)
Installation.安装。 (
pip install flask
) (
pip install flask
)
Check the module: ( pip show flask
)检查模块:(
pip show flask
)
Run:跑:
Reference: Flask Tutorial in Visual Studio Code .参考: Flask 教程在 Visual Studio Code中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.