Conda配置虚拟环境 jupyter notebook使用虚拟环境

notebook中没有虚拟环境的解决办法
1、conda install ipykernel
2、python -m ipykernel install --user --name gh1 --display-name gh1
gh1为虚拟环境的名称,display-name代表显示的是什么
在虚拟环境中启动jupyter notebook
阿婆主给的方法是:ipython notebook,我这里一直提示找不到notebook。之后我使用jupyter notebook启动成功
在虚拟环境中安装jupyter notebook
阿婆主给的方法是pip install notebook,我这里测试安装不到虚拟环境中,最后我通过conda install notebook安装的
扩展:删除虚拟环境并且删除notebook中的虚拟环境
删除虚拟环境conda remove -n EnvName --all
删除notebook中的虚拟环境
1 查看安装了哪些虚拟环境kernel(在base或虚拟环境下运行都可以):
jupyter kernelspec list
2 删除指定的kernel:
jupyter kernelspec uninstall myenv