Myokit for OS/X

Myokit needs GCC, Python 2.7 and the Sundials ODE solvers to run. Each step of the installation is discussed separately below.

Downloading Myokit

Download the latest myokit sources:

Myokit 1.26.3

These can be unpacked anywhere and used without further installation.

Installing the dependencies

The following components are required to run Myokit:

The GCC compiler

First, if you haven't already, install Xcode and the Xcode Command Line Tools to obtain GCC. These can be obtained at (you may need to create an account).


Next, you need to install Sundials, either manually, or (much easier) via homebrew.

To use homebrew, first install it, then install sundials by opening the terminal and typing

$ brew install sundials


$ brew install homebrew-science/sundials

Python 2.7

Myokit requires Python 2.7 to run, including the popular modules numpy, scipy, Matplotlib and PyQt (either PyQt4, PyQt5 or PySide).

The easiest way to obtain these is to install the Python distribution Anaconda with the default options.

Some packages may also be installed via homebrew, for example:

$ brew install pyqt5

Testing Myokit

To test Myokit, open a terminal, navigate to the directory where you unpacked Myokit, and type

$ python myo run example

This tells Python to load the myo script, with the extra arguments "run example" to run a simple example simulation.

To run Myokit's IDE, simply type:

$ python myo

Adding OpenCL support

If you want to use the OpenCL based libraries, look here for instructions.


To uninstall Myokit, simply delete the directory where you unpacked it. To uninstall any of the dependencies, please see the websites of the individual components you installed.


Please note: GCC, Xcode, Sundials, Python etc. are not part of Myokit, and come with their own user licenses.

Further questions

If you have any questions, please email Michael Clerx ( or check out the Myokit mailing list.