jupyter notebook更换虚拟环境(内核)
-
创建一个新的虚拟环境
# stk_env 虚拟环境的名字,任取。 conda create -n stkenv python=3.9 -
激活虚拟环境
conda activate stkenv -
安装ipykernel
# 为该虚拟环境,安装内核。 conda install -c anaconda ipykernel -
将ipykernel改为自己环境的名字
# jupyter notebook切换内核的时候好区分 python -m ipykernel install --user --name=stk_env -
重启jupyter notebook,更换虚拟环境(内核)。















![[RocketMQ] Broker CommitLogDispatcher 异步构建ConsumeQueue和IndexFile源码解析 (十四)](https://img-blog.csdnimg.cn/5390a81d646040c9996c093700e7fa86.png)



