添加或删除jupyter notebook的虚拟环境
生活随笔
收集整理的這篇文章主要介紹了
添加或删除jupyter notebook的虚拟环境
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
添加或刪除jupyter notebook的虛擬環(huán)境
1.添加Kernel(環(huán)境)
切換到要添加的環(huán)境,我這里是tensorflow
conda activate tensorflow安裝ipykernel
pip install ipykernel添加Kernel(–name 后面跟你要給Kernel起的名字)
python -m ipykernel install --name tensorflow如果報(bào)沒(méi)權(quán)限
python -m ipykernel install --user --name tensorflow查看有多少Kernel
ipython kernelspc list然后重啟jupyter notebook
2.刪除Kernel(環(huán)境)
刪除指定Kernel(環(huán)境)
jupyter kernelspec remove pytorch總結(jié)
以上是生活随笔為你收集整理的添加或删除jupyter notebook的虚拟环境的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 桌面图标重启后变乱怎么办开机后桌面图标变
- 下一篇: tensorflow-gpu2.x无法检