Jupyter Notebook添加conda环境
@ 归零 | 星期六,六月 27 日,2020 年 | 1 分钟阅读 | 更新于 星期六,六月 27 日,2020 年

本篇博客介绍如何将conda中python环境添加到Jupyter notebook中.

1. 安装ipykernel

conda install ipykernel

2. 激活对应的conda环境

source activate ${环境名称}

3. 将环境写入notebook的kernel中

python -m ipykernel install --user --name ${环境名称} --display-name "${jupyter noteboot中显示的名称}"

4. 启动jupyter notebook

jupyter notebook

© 2014 - 2022 Lionel's Blog

Powered by Hugo with theme Dream.