trying to run a 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 include Flask with the latest version. what I don't understand is what is this what is this restful module.
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
You can check if you have the Flask-RESTful package installed by running the pip show Flask-RESTful command. Copied! The pip show Flask-RESTful command will either state that the package is not installed or show a bunch of information about the package, including the location where the package is installed.
first to install flask-restful api use command:
pip install flask-restful
And import the package flask_restful,such as:
from flask_restful import Resource,reqparse, Api
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With