![](/img/trans.png)
[英]WSGI, Flask, Python 2.7, Apache2, ImportError = no modul named flask
[英]ModuleNotFoundedError:No modul named flask
我正在使用 Windows 10 家。 我有 Python 3.9.1 和 Visual Studio 代碼。我正在學習 Visual Studio 代碼中的 Flask。 我已經安裝了 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.
注意:我是新的程序。所以我不知道該怎么辦? 注意 2:我正在嘗試使用 HTML 和 CSS 運行 Python 代碼。
關於在 VS Code 中使用“flask”,您可以參考以下內容:
檢查終端使用的python是否與選擇的python相同:( python --version
or pip --version
)
安裝。 ( pip install flask
)
檢查模塊:( pip show flask
)
跑:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.