ImportError: No module named flask_restful

Imports are case sensitive on certain platforms, namely Linux (Windows and Mac may or may not care about case). The package Flask-RESTful isn't all lowercase like most packages (as per PEP 8 recommendation), so import flask_restful as restful will yield an import error unless the proper case is used.


I had the same problem... I was running my app using the "Play" button of Visual Studio Code and was stuck. Everything was already installed... After a while I realized that I had to use the console of the IDE and start the program from there:

python App.py

I was running it under a Virtual Environment


ImportError: No module named flask_restful

Seems that you don't have flask_restful installed, to install run:

pip install flask-restful

in your Terminal and then run your app.

Documentation: https://flask-restful.readthedocs.io/en/latest/installation.html