jupyter noetbook切换kernel

1,conda env list 查看环境

2,activate pytorch1.10激活环境

3,在当前环境下执行: pip install ipykernel -i https://pypi.douban.com/simple  就是在要先在当前环境下安装ipykernel,然后才能在jupyter中使用

4,继续执行:python -m ipykernel install --user --name pytorch1.10 --display-name "conda env:pytorch1.10]"

5,任意环境打开的jupyter notebook 即可切换到刚才的环境

 
posted @ 2022-06-28 10:24  cheng4632  阅读(175)  评论(0编辑  收藏  举报