getting Import "flask_wtf" could not be resolved

Question:

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:usersmyprojectvenvvenvlibsite-packages

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

but still nothing is working

I tried reinstalling the flask and flask_wtf

Asked By: codersheep

||

Answers:

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:usersmyprojectvenvvenvlib……..
or something like that

deactivate it

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

then reactivate it using the:
venvScriptsactivate

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

Answered By: PSS
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.