数智家——个人经验分享

码农花园:记录和分享编程技术、大数据、物联网的个人记录!

JupyterNotebook添加自定义conda环境内核

JupyterNotebook添加自定义conda环境


1.安装ipykernel
conda install ipykernel

2.激活目标环境
activate pytorch_gpu

3.为jupyter notebook 安装kernel
python -m ipykernel install --user --name pytorch_gpu --display-

name 'pytorch_gpu'

4.启动jupyter notebook
jupyter notebook --notebook-dir=D:\Project\jupyter

5.在jupyter notebook中切换kernel为刚安装的环境内核,并import相关包进行验证

done!

博文最后更新时间:


评论

  • 暂无评论

发表评论

博客统计

访问量:546397

博文总数:21 评论总数:1

原创20 翻译0 转载1