参考: Flask Installation
$ 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)
$ 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)
$ 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)
$ easy_install Flask-SQLAlchemy