1. 查看已有虚拟环境
conda env list
2. 新建虚拟环境
conda create --name '虚拟环境名称' python=3.6
3. 激活虚拟环境
activate '虚拟环境名称'
4. jupyter notebook添加虚拟环境
在指定的虚拟环境中使用:
conda install ipykernel
5. jupyter notebook添加虚拟环境重命名
在指定的虚拟环境中使用:
python -m ipykernel install --name 'new name'
6. 查看jupyter notebook所有虚拟环境
jupyter kernelspec list
7. jupyter notebook删除虚拟环境
jupyter kernelspec remove 'new name'