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!
博文最后更新时间:
评论
-
暂无评论