centos 7下创建Flask开发环境

前端之家收集整理的这篇文章主要介绍了centos 7下创建Flask开发环境前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

一、安装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
原文链接:https://www.f2er.com/centos/381107.html

猜你在找的CentOS相关文章