Install Using Conda (Advanced)ΒΆ

It is also possible to install SimNIBS using the Conda package manager.

  1. Download and install the Miniconda Python 3 distribution.

  2. Go to the latest SimNIBS release page and download the environment_*.yml file for your operating system

    • Windows: Open the the Anaconda Prompt, which can be found in the Star Menu.

    • Linux and MacOS: Open a terminal. Type

      export PATH="$HOME/miniconda/bin:$PATH"

      to ensure conda is in your system PATH. You might need to change the command above depending on your miniconda install location.

  3. Create and activate the simnibs_env conda environment.

conda env create -f PATH/TO/environment_<OS>.yml
conda activate simnibs_env

Where PATH/TO/environment_<OS>.yml designates the path to the downloaded environment file, typically:

  • Windows: %HOMEPATH%\Downloads\environment_win.yml

  • Linux: ~/Downloads/environment_linux.yml

  • MacOS: ~/Downloads/environment_macOS.yml

  1. Install SimNIBS using pip.

pip install -f simnibs

  1. To setup the menu icons, file associations, the MATLAB library and add SimNIBS to the system path, run the postinstall_simnibs script:

    • Windows

      postinstall_simnibs --copy-matlab --setup-links -d %LOCALAPPDATA%\SimNIBS

    • Linux

      mkdir $HOME/SimNIBS
      postinstall_simnibs --copy-matlab --setup-links -d $HOME/SimNIBS

    • MacOS

      mkdir -p $HOME/Applications/SimNIBS
      postinstall_simnibs --copy-matlab --setup-links -d $HOME/Applications/SimNIBS

    Type postinstall_simnibs -h for more options.