Frist
pip install ipykernel
If something goes wrong, re-enter the following code
pip install ipykernel
Then input this code
python -m ipykernel install --name pytorch
Now let’s take a look at the kernels installed in Jupyter notebook.
input:
jupyter kernelspec list
原文连接:原文链接