Follow these steps to install virtualenv on python:
$ pip install virtualenv  
$ mkdir new   
$ cd new   
$ virtualenv venv 
Activate the virtualenv from your Linux shell:
$ venv/bin/activate   
If you are using windows use the following command to activate virtualenv:
$ venv\scripts\activate 
Now go ahead and install flask:
$ pip install flask