website/docs/getting-started/installation.md
import TabItem from '@theme/TabItem'; import Tabs from '@theme/Tabs';
Flet requires Python 3.10 or later. (1)
python --version.Flet supports macOS 12 (Monterey) or later.
Flet supports 64-bit version of Microsoft Windows 10 and Windows 11.
Flet supports Debian 10, 11 and 12 and Ubuntu 20.04, 22.04 and 24.04 LTS.
<details> <summary>Desktop flavor (audio & video support)</summary>On Linux, the Flet desktop client is available in two flavors: full and light.
The light flavor (default on Linux) does not include audio and video extensions, resulting in a smaller download. The full flavor bundles audio and video support out of the box.
To select the flavor, either set the FLET_DESKTOP_FLAVOR environment variable:
export FLET_DESKTOP_FLAVOR=full
or add the setting to your project's pyproject.toml:
[tool.flet]
desktop_flavor = "full"
If you use the light flavor and need audio or video, you will need to install the required libraries yourself — see the Audio and Video setup guides.
</details> <details> <summary>Windows Subsystem for Linux (WSL)</summary>Flet apps can be run on WSL 2 (Windows Subsystem for Linux 2).
However, if you are getting cannot open display error follow this
guide for troubleshooting.
We recommend using a virtual environment for your Flet projects to keep dependencies isolated and avoid conflicts with your other Python projects.
First, create a new directory for your Flet project and switch into it:
mkdir my-app
cd my-app
Next, create and activate a virtual environment (we recommend using uv as package manager):
Install uv if you haven't already, then run the following commands:
uv init --python='>=3.10'
uv venv
source .venv/bin/activate # (1)!
.venv\Scripts\activate instead.
</TabItem>
python3 -m venv .venv if python points to Python 2.x..venv\Scripts\activate instead.
</TabItem>
To install Flet and add it to your project dependencies, do the following depending on your package manager:
<Tabs groupId="uv--pip"> <TabItem value="uv" label="uv"> ```bash uv add 'flet[all]' ``` </TabItem> <TabItem value="pip" label="pip"> ```bash pip install 'flet[all]' # (1)! ```requirements.txt or pyproject.toml.
</TabItem>
To make sure Flet has been installed correctly, we can check its version using the --version (or -V) flag or the doctor command:
To upgrade Flet to its latest version:
<Tabs groupId="uv--pip"> <TabItem value="uv" label="uv"> ```bash uv add 'flet[all]' --upgrade ``` </TabItem> <TabItem value="pip" label="pip"> ```bash pip install 'flet[all]' --upgrade ``` </TabItem> </Tabs>