1. Reference: https://blog.csdn.net/qq_34650787/article/details/83304080
2. Record of problem solving method
(1) The cause of the problem
- Start python from the xshell terminal, and enter the sys, sys.executable commands in turn to get the execution environment path;
- After jupyter is started, create a new corresponding environment, and enter the sys, sys.executable commands in turn to get the execution environment path;
- Comparing two paths is often caused by inconsistencies;
(2) Solution
- ipython kernelspec list
- cd corresponds to the path of the environment
- cat kernel.json
- Check whether the path is consistent with the ipython kernelspec list, and modify it to be consistent if it is inconsistent