Windows installation guide

Myokit can be installed in three steps (using Python 3.5+):

  1. Download and install Miniconda Python 3.7 (64 bit)

    Miniconda website

  2. Download and install a Visual C++ compiler (MSVC 14.x). Currently, the easiest option seems to be installing the:

    Build Tools for Visual Studio 2019

    When installing, make sure to select the "C++ build tools" option, with the "MSVC" and "Windows 10 SDK" optional features enabled.
  3. From the start menu, open an Anaconda prompt as administrator, and type
    pip install myokit[pyqt]
    To add start menu icons, type
    myokit icons

To upgrade an existing Myokit installation, open an Anaconda prompt and type

pip install --upgrade myokit

Python 2.7 installation

Installation using Python 2.7 is also possible, and takes up a lot less diskspace (because there's a much smaller compiler available that works with Python 2.7). Myokit can be installed in three steps:

  1. Download and install Miniconda Python 2.7 (64 bit)

    Miniconda website

  2. Download and install the Visual C/C++ compiler for Python 2.7

    Microsoft Visual C for Python 2.7

  3. From the start menu, open an Anaconda prompt as administrator, and type
    conda install pyqt
    And then
    pip install myokit
    Finally, to add start menu icons, type
    myokit icons

Compiler issues

Microsoft has not made it easy to install their C/C++ compilers. In addition, you need a specific version of the compiler depending on which version of Python you use. Information on which compiler you need, and how to get it, can be found on this Python wiki page.

To see if Myokit can find a compiler, use:

python -m myokit compiler
If it can't, more debug information can be obtained using
python -m myokit compiler --debug

Adding OpenCL support

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

Other Python distributions

Myokit can be used with other Python distributions (versions 2.7 or 3.4 or higher), provided the appropriate compiler is installed. For a list of which compiler is needed with which Python version, see the Python wiki.

Uninstall

To uninstall Myokit, use

pip uninstall myokit
or simply remove all of Anaconda.

Licensing

Please note: Anaconda is a third-party software package with its own licensing and copyright restrictions. The Myokit installer provides binary packages for CVODE, another third-party package that is part of the Sundials suite of solvers. Licensing information on CVODE can be found here.

Further questions

If you have any questions, please email Michael Clerx (michael@myokit.org) or check out the issues page.