Setup a Flask environment
by Anthony
How to setup a proper Flask environment
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions. And before you ask: It’s BSD licensed!
A proper Flask environment need Virtualenv and Virtualenvwrapper. Virtualenv is a tool to create isolated Python environments. You can install it directly from your CLI with PIP. PIP is a Python packages manager.
Installation
To install pip and upgrade it to the last version, run the following:
After that, you can simple install virtualenv and virtualenvwrapper with the following:
Flask Environment
Now you have to create a new virtual environment for your project
In order to use your new virtual environment type:
You can now install Flask and play with Python with the following:
To return to your main environement, just run:
Subscribe via RSS