在Jupyter Notebook中加載虛擬環境
比如現在我創建了一個虛擬環境名爲pytorch
,那麼首先我先進入虛擬環境
activate pytorch # Linux下需要使用source activate
然後運行
conda install nb_conda_kernels
稍等片刻即可,就會在Jupyter Notebook裏發現虛擬環境啦。
在Jupyter Notebook中刪除虛擬環境
如果是用添加kernel的方法,則使用
jupyter kernelspec remove pytorch
這樣就可以移除了,如果採用上述方式直接卸載包。