When encountering Jupyter Notebook, error occurs when naming and there is no output after running. It just adds a line of empty code downwards, and [ ] is empty.

When encountering Jupyter Notebook, error appears when naming and there is no output after running. It just adds a line of empty code downwards, and [ ] is empty. To open Jupyter Notebook, you have to copy and paste the address into the browser, but as long as you open Jupyter Notebook interface, cmd will be closed.

Questions are as follows:

Insert image description here

Solution: (I downloaded the Jupyter Notebook using Anaconda before)

Refer to @nitroclassmate
①: First find python.exe in the Anaconda download directory and copy its path
Insert image description here

Insert image description here
②: Search for "cmd" in the lower left corner of the desktop and open it as an administrator.
Insert image description here
The key point
is to open it as an administrator. I didn't do it the first few times, so there were a lot of problems.
***Enter "cd space and then press ctrl+v"*** (that is, cd plus space and the path you just copied) and
press Enter
”

*Input again python.exe -m pip uninstall pyzmq(*I don’t know why but just do it)
Enter
and enter “y” again
Insert image description here

Enter and press python.exe -m pip install pyzmq==19.0.2
Enter
again and enter "y"
Insert image description here
again. Although there is still an error, Jupyter Notebook can be opened and run normally.
Insert image description here

Guess you like

Origin blog.csdn.net/m0_53126906/article/details/122902046