美文网首页
jupyter notebook 添加 conda 环境

jupyter notebook 添加 conda 环境

作者: 龙黎_ | 来源:发表于2018-02-01 10:27 被阅读1162次

问题:在conda原有环境的基础上,添加了新的conda环境,需要在新环境下使用jupyter notebook

解决:

1. 安装ipykernel

conda install ipykernel  

2. 激活conda环境

source activate your_env_name

3. 将环境写入notebook的kernel中

python -m ipykernel install --user --name your_env_name --display-name your_env_name 

4. 打开notebook

jupyter notebook  

相关文章

网友评论

      本文标题:jupyter notebook 添加 conda 环境

      本文链接:https://www.haomeiwen.com/subject/xxzrzxtx.html