ModuleNotFoundError: No module named 'flask_bootstrap' ModuleNotFoundError: No module named 'flask_bootstrap' flask flask

ModuleNotFoundError: No module named 'flask_bootstrap'


I had the same issue.

deactivate and activate the virtual environment solved it

deactivate. venv/bin/activate


You have to install flask_bootstrap using the following command:

pip install flask_bootstrap

In your case, you should not use a hyphen(-) In place of hyphen use underscore( _) then it might work.


While I waited for help, I was trying to figure out if I could get the virtual environment to be 'hooked up' to pycharm, and I found that pycharm made it's own virtual environment without the pip installs I was given, so I got the command line open into that, ran the pip installs, and now I can get it to run through pycharm.

So it works in the virtual environment that I discovered and added the installs to. (did not work from pycharm at all due to pycharm didn't know flask was installed and would error sooner) But not in the one that I was instructed on making. I don't know why.