准备:安装Anaconda/Miniconda后,打开Anaconda Prompt,激活(activate)环境
1.安装jupyter
conda install jupyter notebook
2.打开jupyter
jupyter notebook
3.在jupyter中使用虚拟环境
(1)安装ipykernel
conda install ipykernel
(2)手动添加和删除
# 添加命令(在已激活的环境下添加)
python -m ipykernel install --name 环境名
# 删除命令
jupyter kernelspec uninstall 环境名