美文网首页
conda新建jupyter内核

conda新建jupyter内核

作者: 术枚派 | 来源:发表于2021-02-09 21:31 被阅读0次

在服务器上配置好jupyter之后,想要基于anaconda给jupyter配置多个内核。


方法一

首先激活对应的环境

conda activate torch1.2

安装ipykernel 

conda install ipykernel

之后将环境写入notebook的kernel中

python -m ipykernel install --user --name torch1.2 --display-name "torch1.2"

方法二

conda install -n tf2.4 ipykernel

conda activate tf2.4

python -m ipykernel install --user --name tf2.4  --display-name “tf2.4”

区别是先安装后激活


之后刷新jupyter就能看到了

后来发现一个bug, conda环境的切换不能嵌套,不然看起来是切换了,但是其实用的还是错误的python环境

相关文章

网友评论

      本文标题:conda新建jupyter内核

      本文链接:https://www.haomeiwen.com/subject/galcxltx.html