首先在base下安装ipykernel
conda install ipykernel
在虚拟环境下安装ipykernel
conda install -n tensorflow ipykernel
激活conda环境并将环境写入jupyter
python -m ipykernel install --user --name tensorflow --display-name "tensorflow"
可以在创建虚拟环境时便安装ipykernel
conda create -n tensorflow python=3.6 ipykernel
删除kernel环境
jupyter kernelspec remove tensorflow