添加或删除jupyter notebook的虚拟环境
生活随笔
收集整理的這篇文章主要介紹了
添加或删除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總結
以上是生活随笔為你收集整理的添加或删除jupyter notebook的虚拟环境的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 桌面图标重启后变乱怎么办开机后桌面图标变
- 下一篇: tensorflow-gpu2.x无法检