Installation
Get started with Flet by installing the package and setting up your development environment.Requirements
Before installing Flet, ensure you have:- Python 3.10 or higher - Flet requires a modern Python version
- pip or conda - Python package manager
You can check your Python version by running
python --version in your terminal.Install Flet
Choose your preferred package manager to install Flet:The
flet[all] option includes additional dependencies for all Flet features. Use the basic flet package if you want a lighter installation.Verify installation
Confirm that Flet is installed correctly:Platform-specific setup
Windows
No additional setup is required for Windows. Flet works out of the box.Install Python
Download and install Python from python.org if you haven’t already.
macOS
Flet runs natively on macOS with no additional dependencies.Linux
Flet works on most Linux distributions. Some systems may require additional packages.Development tools
While not required, these tools enhance your Flet development experience:Code editor
We recommend using:- Visual Studio Code with the Python extension
- PyCharm (Community or Professional)
- Any editor with Python support and autocomplete
Virtual environment
Create an isolated environment for your Flet projects:Using a virtual environment is recommended to keep your Flet projects isolated and avoid dependency conflicts.
Mobile development setup
To build and deploy Flet apps to mobile devices, you’ll need additional tools:iOS development
- macOS is required for iOS development
- Xcode - Download from the Mac App Store
- CocoaPods - Install with
sudo gem install cocoapods
Android development
- Android Studio or Android SDK command-line tools
- Java Development Kit (JDK) version 11 or higher
You don’t need these tools for initial development. You can build and test Flet apps on desktop and web first, then add mobile deployment later.
Testing on mobile devices
During development, you can test your Flet app on mobile devices without building a full package:-
Install Flet app on your mobile device:
- Flet for iOS from App Store
- Flet for Android from Google Play
-
Run your app with the
--iosor--androidflag: - Scan the QR code displayed in your terminal with your device
Update Flet
Keep Flet up to date to access the latest features and fixes:Next steps
Now that you have Flet installed, you’re ready to build your first app:Quick start tutorial
Build an interactive counter app in minutes and learn the basics of Flet.