Installation

Warning

magpylib works only with Python 3.6 or later !

Dependencies:
  • numpy
  • matplotlib

The latest versions will be installed automatically with magpylib.

Install with pip

The quickest installation on any platform is through pip.

pip install magpylib

If you are unfamiliar with pip, please follow the detailed guides below:

Windows

Anaconda 3 Install

If you have little experience with Python we recommand using Anaconda.

  1. Download & install Anaconda3

  2. Start Anaconda Navigator

  3. On the interface, go to Environments and choose the environment you wish to install magpylib in. For this example, we will use the base environment:

    ../../_images/anaconda0.png
  4. Click the arrow, and open the conda terminal

    ../../_images/anaconda1.png
  5. Input the following to install from conda-forge:

    conda install -c conda-forge magpylib
    
  6. Dont forget to select the proper environment in your IDE.

    ../../_images/anaconda2.png

Clean Python 3 Install

If you want to have a custom environment without using conda, you may simply install the library with pip. A simple guide for installation and functionality of pip is found here

Linux

Recommended: use Anaconda environment. Simply download Anaconda3 and follow installation steps as under Windows.

Terminal Python 3 Install

  1. Install Python3.

  2. Open your Terminal and install with

    pip install magpylib
    

Download Sites

Currently magpylib is hosted at: