Jupyter notebook 添加新环境配置过程
一、先创建环境
打开anaconda prompt
conda create -n your_env_name
二、激活环境
conda activate your_env_name
三、在当前创建的环境内安装ipykernel
pip install ipykernel
四、将新建的环境加入jupyter中
python -m ipykernel install --user --name A --name B
A:你在创建环境时的名字
B:你要在jupyter中显示的内核的名字
五、常用命令
# 显示内核列表
jupyter kernelspec list
# 删除内核
jupyter kernelspec remove kernel_name