Installation
Requirements
- Python 3.13+
- WeasyPrint system libraries (Linux/macOS only — see below)
Install LeafPress
=== "uv"
```bash
uv add leafpress
```
=== "pip"
```bash
pip install leafpress
```
=== "pipx (global CLI)"
```bash
pipx install leafpress
```
With Desktop UI
The menu bar / system tray app requires PyQt6:
=== "uv"
```bash
uv add 'leafpress[ui]'
uv sync --extra ui
```
=== "pip"
```bash
pip install 'leafpress[ui]'
```
=== "pipx"
```bash
pipx install 'leafpress[ui]'
```
WeasyPrint System Dependencies
LeafPress uses WeasyPrint for PDF rendering. WeasyPrint requires Pango and related libraries.
Ubuntu / Debian
Fedora / RHEL
macOS
Windows
On Windows, WeasyPrint can be installed via pip. GTK+ libraries may be needed — see the WeasyPrint Windows installation guide.