codersheep
codersheep

Reputation: 11

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

but still nothing is working

I tried reinstalling the flask and flask_wtf

Upvotes: 0

Views: 248

Answers (1)

PSS
PSS

Reputation: 39

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.

Upvotes: -2

Related Questions