-
Notifications
You must be signed in to change notification settings - Fork 0
Server Configuration
Eduard Maura edited this page Oct 14, 2016
·
1 revision
In Ubuntu server install virtualenv with:
$ sudo apt-get install python-virtualenv
Choose a directory to create the virtual environment with:
$ mkdir myproject $ cd myproject $ virtualenv venv
If it doesn't work, check LC_TYPE and LC_ALL are set with:
$ locale export LC_TYPE="es_ES.UTF-8" export LC_ALL="es_ES.UTF-8"
Once it is installed, activate the environment using:
$ . venv/bin/activate
Then you should be seeing in the prompt something like this:
(venv) alumne@...
Then, install Flask:
$ pip install Flask
To deactivate the environment, use:
$ deactivate