Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

when i try to run my project i get the error that says no module named flask

when I try to run my project I get the following error and it says no module named flask
I am using python 3.10 and it is the first time to get this error i used pywhatkit before and it worked

the error

File "D:\pythonProject\pypot\venv\lib\site-packages\pywhatkit\remotekit.py", line 6, in <module>
    from flask import Flask, request
ModuleNotFoundError: No module named 'flask'

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You need to install flask from https://pypi.org/

You can do so with the command: pip install flask

Or better, you create an virtual environnement and install flask in it

python -m venv myFlaskProject
.\myFlaskProject\Scripts\activate # windows
source ./myFlaskProject/bin/activate # MacOS, Linux
pip install flask
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading