jupyter-lab识别anaconda虚拟环境

问题描述 在Jupyter Notebook/JupyterLab中想要识别虚拟环境, 需要在虚拟环境中安装nb_conda包, 但是最近几个月来总出现安装错误(虽然conda list显示已安装), 如下, 且jupyter-lab中无法识别出虚拟环境:
jupyter-lab识别anaconda虚拟环境
文章图片

解决版本:

    1. conda install nb_conda ipykernel;
    1. 激活环境后运行下面命令, 其中torch_36是我的虚拟环境名称
      ipython kernel install --user --name torch_36
      jupyter-lab识别anaconda虚拟环境
      文章图片
效果 jupyter-lab识别anaconda虚拟环境
文章图片

【jupyter-lab识别anaconda虚拟环境】转载于:https://www.cnblogs.com/geoffreyone/p/11555440.html

    推荐阅读