Install Using Conda (Advanced)

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

Windows

  1. Download and install the Miniconda Python 3 distribution.

  2. Locate the appropriate wheel for Windows on the release page (see latest), copy its address, and feed this directly to pip install as shown below

  3. Download the SimNIBS Windows environment file

  4. Open Anaconda Prompt, which can be found in the Start Menu.

  5. Run in the Prompt:

conda env create -f "%USERPROFILE%\Download\environment_win.yml"
conda activate simnibs_env
pip install https://github.com/simnibs/simnibs/releases/download/latest/simnibs-4.5.0-cp311-cp311-win_amd64.whl # change to the correct version

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

md "%USERPROFILE%\SimNIBS"
postinstall_simnibs --setup-links -d "%USERPROFILE%\SimNIBS"

Linux

  1. Download and install the Miniconda Python 3 distribution.

  2. Locate the appropriate wheel for Linux on the release page (see latest), copy its address, and feed this directly to pip install as shown below

  3. Download the SimNIBS Linux environment file

  4. Run in a terminal window:

export PATH="$HOME/miniconda/bin:$PATH" # This part can change depending on your miniconda installation
conda env create -f ~/Downloads/environment_linux.yml
conda activate simnibs_env
pip install https://github.com/simnibs/simnibs/releases/download/v4.5.0/simnibs-4.5.0-cp311-cp311-linux_x86_64.whl # change to the correct version

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

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

MacOS

  1. Download and install the Miniconda Python 3 distribution.

  2. Locate the appropriate wheel for MacOS on the release page (see latest), copy its address, and feed this directly to pip install as shown below

  3. Download the SimNIBS OSX environment file

  4. Run the following in a terminal window:

export PATH="$HOME/miniconda/bin:$PATH" # This part can change depending on your miniconda installation
conda env create -f ~/Downloads/environment_macOS.yml
conda activate simnibs_env
pip install -f https://github.com/simnibs/simnibs/releases/download/v4.5.0/simnibs-4.5.0-cp311-cp311-macosx_11_0_arm64.whl

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

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