1.显示有哪些内核
jupyter kernelspec list
2.删除某个内核
jupyter kernelspec remove xxx
3.添加某个内核
先激活环境
conda activate test_env
然后安装ipykernel包
pip install ipykernel
在虚拟环境中安装ipykernel包
python -m ipykernel install --name test_env
安装过程中,可以指定pip源信息,使用-i参数即可。
-i https://pypi.tuna.tsinghua.edu.cn/simple