Installation:
Windows
Windows install
Preferred install method is to use pip to install pyFltk from PyPi
First install Python
- Note which versions of Python have prebuilt wheel packages on PyPI
- Download a supported version of 64-bit Python installer for Windows from https://www.python.org/downloads/windows/
- After downloading Python, right click the .exe file and choose Run as Administrator
- Check the Add Python to PATH box
- Click Custom Installation
- Click Install for all users
Next install pyFltk
- Open a command prompt (search "cmd") or Powershell
- Type the command:
pip install pyfltk
As a convenience we have also provided the wheel files on Sourceforge
MacOS
These instructions have been tested on both Apple Intel 64bit cpus and Apple Silicon Mx cpus.
- Goto the Brew.sh website and follow instructions to install the Homebrew package manager
- Note which versions of Python have prebuilt wheel packages on PyPI
- Download and install a supported version of Python for macOS https://www.python.org/downloads/macos/
- Install C++ FLTK 1.4, in a terminal run the command
brew install fltk
- Install pyFltk, in a terminal run the command
pip3 install pyfltk
Linux
Installing on Ubuntu/Debian Linux using apt package manager
For Debian 12 or Ubuntu 22.04 or Ubuntu 24.10 run the command:
sudo apt install python3-fltk
Building pyFltk from latest source code:
- svn checkout https://svn.code.sf.net/p/pyfltk/code/trunk pyfltk-code
- cd pyfltk-code/pyfltk/
- Follow instructions in the INSTALL file