[Solved]: ModuleNotFoundError: No module named 'flask_restful'

ERROR:

$ python app.py 

Traceback (most recent call last):

  File "app.py", line 2, in

    from flask_restful import Api

ModuleNotFoundError: No module named 'flask_restful'

Solution:

$ pip install flask_restful

Collecting flask_restful

  Downloading https://files.pythonhosted.org/packages/17/44/6e490150ee443ca81d5f88b61bb4bbb133d44d75b0b716ebe92489508da4/Flask_RESTful-0.3.7-py2.py3-none-any.whl

Requirement already satisfied: Flask>=0.8 in /anaconda3/lib/python3.6/site-packages (from flask_restful) (1.0.2)

Requirement already satisfied: pytz in /anaconda3/lib/python3.6/site-packages (from flask_restful) (2018.5)

Collecting aniso8601>=0.82 (from flask_restful)

  Downloading https://files.pythonhosted.org/packages/69/9b/f2ae61c0c90181b62e15ca09d283d2aab42c7c2c3bbd7c548dd0cfd8bf3e/aniso8601-4.0.1-py2.py3-none-any.whl

Requirement already satisfied: six>=1.3.0 in /anaconda3/lib/python3.6/site-packages (from flask_restful) (1.11.0)

Requirement already satisfied: click>=5.1 in /anaconda3/lib/python3.6/site-packages (from Flask>=0.8->flask_restful) (7.0)

Requirement already satisfied: itsdangerous>=0.24 in /anaconda3/lib/python3.6/site-packages (from Flask>=0.8->flask_restful) (1.0.0)

Requirement already satisfied: Jinja2>=2.10 in /anaconda3/lib/python3.6/site-packages (from Flask>=0.8->flask_restful) (2.10)

Requirement already satisfied: Werkzeug>=0.14 in /anaconda3/lib/python3.6/site-packages (from Flask>=0.8->flask_restful) (0.14.1)

Requirement already satisfied: MarkupSafe>=0.23 in /anaconda3/lib/python3.6/site-packages (from Jinja2>=2.10->Flask>=0.8->flask_restful) (1.0)

Installing collected packages: aniso8601, flask-restful

Successfully installed aniso8601-4.0.1 flask-restful-0.3.7