添加或删除jupyter notebook的虚拟环境

添加或删除jupyter notebook的虚拟环境

1.添加Kernel(环境)

切换到要添加的环境,我这里是tensorflow

conda activate tensorflow

安装ipykernel

pip install ipykernel

添加Kernel(–name 后面跟你要给Kernel起的名字)

python -m ipykernel install --name  tensorflow

如果报没权限

python -m ipykernel install --user --name tensorflow

查看有多少Kernel

ipython kernelspc list

然后重启jupyter notebook

2.删除Kernel(环境)

删除指定Kernel(环境)

jupyter kernelspec remove pytorch
posted @   鸭梨的药丸哥  阅读(102)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示