How to change jupyter kernel from Python 2 to python 3?

前端 未结 3 855
半阙折子戏
半阙折子戏 2021-02-08 04:15

I have installed Jupiter notebook and I only have python 2 as a default kernel. I want to change it from python 2 to python 3. How could I do that?

3条回答
  •  眼角桃花
    2021-02-08 04:55

    https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html 
    

    Follow the link for managing python. If you use python 2, then install python 3 by using this command.

    conda create -n py36 python=3.6 anaconda
    

    After installing python 3, activate python 3 by using this command

    activate py36 
    

    Then open jupyter notebook, you will find python on your kernel.

提交回复
热议问题