No module named flask.ext.restful

trying to start the server

(dal)➜ Server (master) python mainDAL.py ✭ ✱ Traceback (most recent call last): File "mainDAL.py", line 4, in <module> from flask.ext import restful File "/Users/partuck/.virtualenvs/dal/lib/python2.7/site-packages/flask/exthook.py", line 87, in load_module raise ImportError('No module named %s' % fullname) ImportError: No module named flask.ext.restful 

my pip includes Flask with the latest version. what I don't understand is what this calming module is.

read here http://flask-restful.readthedocs.org/en/latest/api.html#id1 that it exists.

  (dal)➜ Server (master) pip freeze ✭ ✱ Flask==0.10.1 itsdangerous==0.24 Jinja2==2.7.3 MarkupSafe==0.23 mimerender==0.5.4 pbr==0.10.7 pipdeptree==0.4.2 pymongo==2.7.2 python-dateutil==2.4.0 python-mimeparse==0.1.4 six==1.9.0 SQLAlchemy==0.9.8 stevedore==1.2.0 virtualenv==12.0.5 virtualenv-clone==0.2.5 virtualenvwrapper==4.3.2 Werkzeug==0.9.6 
+7
python flask
source share
2 answers

You have Flask installed, but you did not install Flask-RESTful , this is not on your pip freeze list.

You can install with pip install flask-restful .

+19
source share

I ran into the same problem and the above code could not solve my problem. You can directly apply the code below: -

 pip install Flask-API 

This will help you install the Flask-API, and you do not need to individually update / download the modules.

+2
source share

All Articles