Jupyter Notebook - Cannot Connect to Kernel

后端 未结 10 1689
小蘑菇
小蘑菇 2021-02-20 02:21

I\'ve tried installing jupyter notebook using pip3 install jupyter. Every time i launch a new jupyter notebook, the notebook is unable to connect to the kernel. See screenshot b

10条回答
  •  北荒
    北荒 (楼主)
    2021-02-20 03:02

    Create a conda environment using:

    conda create -n my_env python=3
    

    Activate the environment using:

    source activate my_env
    

    Install the ipykernel using:

    conda install ipykernel
    
    ipython kernel install --name my_env --user
    

    Now open the jupyter and select the "my_env" from Kernel option. ( path : jupyter -> kernel -> change kernel -> my_env )

提交回复
热议问题