macOS

Install pyFltk for macOS

Easy method using pip3

  1. Goto Finder -> Applications -> Utilities. Then launch Terminal app
  2. Install command line tools by typing the following command into your terminal
xcode-select  --install
  1. Open a browser and goto brew.sh website
  2. Install the Homebrew package manager for macOS by pasting the Install Homebrew line on the homepage into your terminal.
  3. Once Homebrew is installed, then install the fltk package with the following command:
brew install fltk
  1. MacOS does not ship with a full Python installation. So you will need to download and install the latest Python 3 64-bit installer from python.org website. Choose one from the last four stable releases.

  2. Finally, install pyFltk with the following command:

pip3 install pyfltk
  1. To test installation, open a new terminal, run the python interpreter and issue the command import fltk inside the python interpreter. If you get no errors then it was successful.