[Python] change python version in jupyter notebook

Discussão em 'Python' iniciado por Stack, Maio 22, 2025.

  1. Stack

    Stack Membro Participativo

    I am using jupyter notebook and jupyter lab through jupyter hub. Currently, the python version recognized by jupyter is 3.6.8. [​IMG]

    I want to set the python version to 3.7.3.

    The python version installed on the server is as follows. (/usr/bin/python*) [​IMG] [​IMG]

    The jupyter notebook kernel is set as follows in /usr/local/share/jupyter/kernels/python3/kernel.json

    If you change the argv path to '/usr/bin/python3' or '/usr/bin/python3.7', the kernel is busy and the connection is not made. TT It works well only when argv path is '/usr/bin/python 3.6'.

    [​IMG]

    • Setting Code

    sudo apt-get install python3-pip

    sudo pip3 install ipykernel

    sudo jupyter kernelspec install-self

    Continue reading...

Compartilhe esta Página