mamba
#
conda-forge/miniforge
安装
#
# 安装
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
# -c 表示渠道
mamba create -n myjlabenv jupyterlab -c conda-forge
mamba activate myjlabenv # activate our environment
jupyter lab # this will start up jupyter lab and open a browser
mamba activate myjlabenv
mamba install bqplot # now you can use bqplot in myjlabenv
mamba install "matplotlib>=3.5.0" cartopy # now you installed matplotlib with version>=3.5.0 and default version of cartopy
# 删除环境
mamba env remove -y -p /home/users/yewang/miniconda3/envs/pytorch
# 环境改名
## 克隆
mamba create -n pytorch --clone hello-pytorch
## 删除老的
mamba env remove -y -n hello-pytorch
## 使用环境路径
mamba create -n d2l --clone /home/users/yewang/miniconda3/envs/d2l
mamba env remove -y -p /home/users/yewang/miniconda3/envs/d2l
# 从文件中安装
mamba install --file requirements.txt -y
# 删除缓存文件
conda clean --all -y
叶王 © 2013-2024 版权所有。如果本文档对你有所帮助,可以请作者喝饮料。