一、安装Flask
$ git clone http://github.com/mitsuhiko/flask.git $ cd flask $ python setup.py develop $ pip list click (4.0) Flask (0.11.dev0,/home/xxx/flask) itsdangerous (0.24) pip (7.1.0) setuptools (18.0.1) wheel (0.24.0)
二、安装psycopy2
$ wget https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.6.1.tar.gz $ tar zxvf psycopg2-2.6.1.tar.gz $ cd psycopg2-2.6.1 $ python setup.py build $ python setup.py install $ pip list click (4.0) Flask (0.11.dev0,/home/xxx/flask) itsdangerous (0.24) pip (7.1.0) psycopg2 (2.6.1) setuptools (18.0.1) sqlAlchemy (1.0.6) wheel (0.24.0)
三、安装sqlAlchemy
$ wget https://pypi.python.org/packages/source/S/sqlAlchemy/sqlAlchemy-1.0.6.tar.gz
$ tar zxvf sqlAlchemy-1.0.6.tar.gz
$ cd sqlAlchemy-1.0.6
$ python setup.py build
$ python setup.py install
$ pip list
click (4.0)
Flask (0.11.dev0,/home/xxx/flask)
itsdangerous (0.24)
pip (7.1.0)
setuptools (18.0.1)
sqlAlchemy (1.0.6)
wheel (0.24.0)
四、安装Flask-sqlAlchemy
$ easy_install Flask-sqlAlchemy