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 |
使用
micromamba activate # this activates the base environment |
配置
micromamba config append channels conda-forge |
方法二
conda install mamba -n base -c conda-forge |
配置vscode的jupytermicromamba activate env_name
pip install jupyter
在vscode中打开一个Python文件,先点击右下角配置python环境
然后打开ipynb ,select kenal配置Python环境