Flask Installation - Development


Example

If you want to develop and contribute to the Flask project, clone the repository and install the code in development mode.

git clone ssh://github.com/pallets/flask
cd flask
python3 -m venv env
source env/bin/activate
pip install -e .

There are some extra dependencies and tools to be aware of as well.

sphinx

Used to build the documentation.

pip install sphinx
cd docs
make html
firefox _build/html/index.html

py.test

Used to run the test suite.

pip install pytest
py.test tests

tox

Used to run the test suite against multiple Python versions.

pip install tox
tox

Note that tox only uses interpreters that are already installed, so if you don't have Python 3.3 installed on your path, it won't be tested.