浅入浅出Flask框架:在ubuntu下安装Flask

2014-06-01

Flask是一个轻量级的基于python的web框架。

一般情况下,只要通过pip安装Flask即可:

pip install Flask

可以根据需要安装其他的工具与Flask配合,请参考The Flask Mega-Tutorial, Part I: Hello, World!

笔者安装的flask信息如下:

>>> import flask

>>> print flask.__doc__

    flask
    ~~~~~

    A microframework based on Werkzeug.  It's extensively documented
    and follows best practice patterns.

    :copyright: (c) 2011 by Armin Ronacher.
    :license: BSD, see LICENSE for more details.

>>> print flask.__version__
0.10.1