Skip to content

Installing on Linux and MacOS using Conda

Sebastian Müller edited this page Jul 30, 2021 · 2 revisions

Guide: Install mHM with Conda on Linux / MacOS

  • Conda: open-source, cross-platform, language-agnostic package manager
    • Miniconda (minimal installer for conda): https://docs.conda.io/en/latest/miniconda.html
    • Install Conda from command line: (works on Linux (+WSL2) and MacOS)
      curl -L -O https://repo.anaconda.com/miniconda/Miniconda3-latest-$(uname)-$(uname -m).sh
      bash Miniconda3-latest-$(uname)-$(uname -m).sh  # init conda: yes ; restart shell
      conda config --set auto_activate_base false     # otherwise conda is always active
      conda config --add channels conda-forge         # conda-forge config
      conda config --set channel_priority strict      # conda-forge config
  • Install mHM in a new conda environment:
    conda create -y --prefix ./mhm_env              # environment in local folder
    conda activate ./mhm_env                        # activate this environment
    conda install mhm
    ./mhm