Install Flask on your POWER web hosting plan
Objective
You've subscribed to a Web POWER web hosting plan to deploy Python applications, and you want to deploy Flask on it.
This guide will explain how to do it.
Find out how to install Flask on your POWER web hosting plan.
Requirements
- A Python POWER web hosting plan
- access to the OVHcloud Control Panel
If you have just started to use your Web POWER web hosting plan, we suggest to have a look at our Getting started with a POWER web hosting plan guide before going further.
Instructions
Let's suppose you have the default configuration for Python hosting:
- Runtime: Python 3.8
- Entrypoint: app.py
- DocumentRoot: www
To verify your configuration, you can use the Retrieve active configuration API endpoint.
To use Python WSGI frameworks, using virtualenv is the simplest choice.
Connect via SSH to your POWER web hosting and activate virtualenv:
Update pip:
Install Flask.
Create app.py with the following content, using the same trick to activate the virtualenv:
Then restart your instance and your Flask project will be online.

Terminal output:
Go further
Join our community of users on https://community.ovh.com/en/.
Join our Discord on our web-hosting-power channel to discuss directly with the team and other users of this lab.