How to add python3? to jupyter

since python2, is installed by default in mac, now I want to use python3,
, so I installed a python3, prompt Installed kernelspec python3 in / usr/local/share/jupyter/kernels/python3 on the terminal, indicating that the core installation of python3 is successful.

but I still have no sign of python3 in jupyter"s new drop-down?
ask everyone


requires sudo permission first, but after using sudo permission, you are prompted that the ipykernel package cannot be found. The reason for this is that the python called by sudo is not the python, in your environment, but the python that comes with the system. If you encounter such a situation, you need to modify the default python version of the system.
first log in to the root user, or sudo executes the following command.
enter update-alternatives-- list python to see an alternative version of python.


python2-m pip install ipykernel
python2-m ipykernel install-- user

python3-m pip install ipykernel
python3-m ipykernel install-- user

.
ubuntun can

Menu