mamba

conda环境导出

conda 环境导出跟mamba一样

conda env export --name th2 > conda_env.yml
conda create -f conda_env.yml

mamba

官网:https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html

安装

curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
cp -r ./bin ~/bin
~/bin/micromamba shell init -s bash -p ~/micromamba # this writes to your .bashrc file
# sourcing the bashrc file incorporates the changes into the running session.
# better yet, restart your terminal!
source ~/.bashrc

使用

micromamba activate  # this activates the base environment
micromamba install python=3.6 jupyter -c conda-forge
# or
micromamba create -n env_name xtensor -c conda-forge
micromamba activate env_name

配置

micromamba config append channels conda-forge
micromamba config set channel_priority strict

方法二

conda install mamba -n base -c conda-forge
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/linux-64
------ 本文结束 🎉🎉 谢谢观看 ------
0%