激活虚拟环境
D:/conda_env/py_keras_gpu为你的环境路径或名称,根据自己情况更改
conda activate D:/conda_env/py_keras_gpu
安装ipykernel
conda install ipykernel
安装ipykernel到环境中
myenv为你的环境名;"Python (myenv)"是你想要它在jupyter notebook中显示的名字,根据自己情况更改这两个值,其他的不变
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
打开jupyter notebook
F:\dive-into-deeplearning\mytest是你希望在哪个文件夹下进行notebook代码编写工作。如果直接输入jupyter notebook的话就是默认打开jupyter notebook安装文件夹下?(这个我也不太确定)
jupyter notebook F:\dive-into-deeplearning\mytest
查看已有kernel:
jupyter kernelspec list
删除不想要的kernel:
jupyter kernelspec uninstall unwanted-kernel
参考文献:
Installing the IPython kernel
【Anaconda】- Anaconda jupyter kernel 的创建与删除