DEV Community

Rahul Narang
Rahul Narang

Posted on

flask_wtf not getting imported.

I have installed the packages, it gets imported in interpreter but when i write code in ide, it says there is not a package named flask_wtf

Top comments (2)

Collapse
 
zeljkobekcic profile image
TheRealZeljko

Have you created a virtual enviroment?
Have you installed flask_wtf in the said virtual enviroment?
Check where your python interpreter is, hence where it is looking for packages and where your package has been installed.

Collapse
 
rhymes profile image
rhymes

Hi Rahul, can you disclose a bit more information?

Judging from your post it seems like the IDE is not pointing to the same Python installation you tried elsewhere (I guess in the command line). A few questions:

  • how did you install Flask-WTF ?
  • which Python version do you have?
  • which IDE?