Install the Flask Environment
Install Flask in python2.5 or later versions. Currently, python3 is not supported, and its wsgi standard has not yet been finalized;
1. Install virtualenv to "Install" an independent python environment for every pyhton application;
Run sudo easy_install virtualenv
Or more advanced: sudo pip install virtualenv
Under Ubuntu: sudo apt-get install python-virtualenvsome code
Ii. Use of virtualenv:
$ Mkdir myproject
$ Cd myproject
$ Virtualenv env // create a directory named env, which is an independent python Environment
$. Env/bin/activate // activate the Environment named env. Note that there are spaces after;
// Activate the corresponding environment before development;
Some code
3. Run the following command to install Flask:
$ Easy_install Flask
Some code
In addition, install the latest Flask using git search:
$ Git clone http://github.com/mitsuhiko/flask.git // download the Installation File
$ Cd flask
$ Virtualenv xxx
$. Xxx/bin/activate
$ Python setup. py develop
Some code
This article permanently updates the link address: