add micromamba init method

This commit is contained in:
2023-12-27 10:21:49 +08:00
parent 9616151fc8
commit 487c2abbcc

View File

@@ -36,3 +36,19 @@ micromamba install -c conda-forge ipykernel -y
# 将新的虚拟环境添加为一个jupyter的内核
micromamba run -n plot python -m ipykernel install --user --name plot --display-name "Plot Environment"
```
# micromamba 提示需要初始化 解决方法
```shell
eval "$(micromamba shell hook --shell bash)"
```
或者使用
```shell
miromamba init
source ~/.bashrc
```
这个操作会激活micromamba(mamba, conda)的安装目录`etc/profile.d/micromamba.sh`激活添加到bash初始化文件`.bashrc`里面