1 Install and configure micromamba
## 1. Install and initialize micromamba
cd /home/yangrui/softs
mkdir micromamba
cd micromamba
wget https://github.com/mamba-org/micromamba-releases/releases/download/2.3.3-0/micromamba-linux-64.tar.bz2
tar -xjvf micromamba-linux-64.tar.bz2
rm -f micromamba-linux-64.tar.bz2
mkdir envs
realpath envs
./bin/micromamba shell init -s bash -r /home/yangrui/softs/micromamba/envs
## 2. Configure sources
vim ~/.mambarc
# Write the following content
channels:
- conda-forge
- bioconda
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
always_yes: true
auto_activate_base: false
## 3. Use a shorthand to call micromamba
vim ~/.bashrc
# Write the following content
alias mamba=micromamba
alias conda=micromamba
## 4. Update
source ~/.bashrc