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

getting Import "flask_wtf" could not be resolved

I am getting ‘Import "flask_wtf" could not be resolved’.
I had the same problem with:
from flask import Fask

I Had to reinstall flask multiple times

for flask_wtf
I am getting Requirement already satisfied: itsdangerous in c:\users\myprojectvenv\venv\lib\site-packages

Installing collected packages: WTForms, flask-wtf
Successfully installed WTForms-3.0.1 flask-wtf-1.1.1

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

but still nothing is working

I tried reinstalling the flask and flask_wtf

>Solution :

I think you are in your virtual environment
that is (venv)

check your terminal if the path to your project looks something like this

(venv) c:\users\myprojectvenv\venv\lib……..
or something like that

deactivate it

in your terminal run the command "pip install flask-wtf"

then reactivate it using the:
venv\Scripts\activate

this should solve the issue.
I had a similar problem.

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