Jupyterlab不使用python内核

2024-09-27 19:20:50 发布

您现在位置:Python中文网/ 问答频道 /正文

康达环境:

  • ML_v0.2(jupyter在本环境中安装并启动)
  • handson-ml2(我想用来练习的环境)
  • 还有更多

jupyter kernelspec list

enter image description here


问题是,当我在jupyterlab中选择handson-ml2内核时,jupyterlab仍然使用ml\u v0.2 env的python(jupyter在这个env中启动)。

enter image description here

另外,path变量不是来自handson-ml2环境。 enter image description here

正常吗?为了使用env和PATH变量的python,我需要在handson-ml2环境上安装并启动jupyterlab吗


编辑

我安装了nb_conda_kernels

conda install nb_conda_kernels

现在,jupyter使用选定的conda env和python


Tags: pathenv环境jupyter内核mlcondalist

热门问题