add micromamba init method
This commit is contained in:
@@ -35,4 +35,20 @@ micromamba activate plot
|
|||||||
micromamba install -c conda-forge ipykernel -y
|
micromamba install -c conda-forge ipykernel -y
|
||||||
# 将新的虚拟环境添加为一个jupyter的内核
|
# 将新的虚拟环境添加为一个jupyter的内核
|
||||||
micromamba run -n plot python -m ipykernel install --user --name plot --display-name "Plot Environment"
|
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`里面
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user