jupyter notebook添加Anaconda虚拟环境的python kernel

参考 https://www.cnblogs.com/yinzm/p/7881328.html

conda create -n py3 python=3 # 创建一个python3的环境,名为py3
source activate py3 # 激活py3环境
conda install ipykernel # 安装ipykernel模块
python -m ipykernel install --user --name py3 --display-name "py3" # 进行配置
jupyter notebook # 启动jupyter notebook,然后在"新建"中就会有py3这个kernel了 
发布了39 篇原创文章 · 获赞 8 · 访问量 7928

猜你喜欢

转载自blog.csdn.net/weixin_40512640/article/details/104038353