How to setup conda (April 2023 version)

There have been some recent changes to the conda/mamba ecosystem, see obligatory xkcd. This is my current way of creating a fresh install of conda. Setting libmamba as the conda solver should allow you mamba-like speed, while at the same time letting you just install programs like `conda install`.

  1. Install miniconda
    1. wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    2. bash Miniconda3-latest-Linux-x86_64.sh
  2. Set libmamba as the default solver – https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community
    1. conda update -n base conda
    2. conda install -n base conda-libmamba-solver
    3. conda config --set solver libmamba
  3. Set channel priorities – https://bioconda.github.io/
    1. conda config –add channels defaults
    2. conda config –add channels bioconda
    3. conda config –add channels conda-forge
    4. conda config –set channel_priority strict
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s